Skip to content

Commit

Permalink
Merge pull request #137 from monlor/test
Browse files Browse the repository at this point in the history
feat: 🎸 添加磁盘剩余空间检测开关
  • Loading branch information
monlor authored Jun 18, 2024
2 parents 1f6465a + ff300ef commit 460e658
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metadata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

`ALIST_ADDR`: alist地址,默认:http://alist:5678

`DISK_CHECK_ENABLED`: 磁盘剩余空间检测开关,true/false,默认true

## emby数据管理

> 进入容器执行
Expand Down
3 changes: 3 additions & 0 deletions metadata/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ fi
echo "开始下载元数据,如果有问题无法解决,请删除目录 ${MEDIA_DIR}/temp 下的所有文件重新启动."

disk_check() {
if [ "${DISK_CHECK_ENABLED:-true}" = "false" ]; then
return
fi
# 磁盘检测
dir="$1"
size="$2"
Expand Down

0 comments on commit 460e658

Please sign in to comment.