From 500c4bab2d514483c58b4a7fd2fa09147242fb4a Mon Sep 17 00:00:00 2001 From: monlor Date: Wed, 10 Jul 2024 19:18:08 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?CLEAR=5FTEMP=E4=BB=8B=E7=BB=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metadata/README.md | 2 ++ metadata/entrypoint.sh | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/metadata/README.md b/metadata/README.md index b2ecdd6..45ada7d 100644 --- a/metadata/README.md +++ b/metadata/README.md @@ -18,6 +18,8 @@ `DISK_CHECK_ENABLED`: 磁盘剩余空间检测开关,true/false,默认true +`CLEAR_TEMP`: 下载解压完是否清除源文件,true/false,默认false + ## emby数据管理 > 进入容器执行 diff --git a/metadata/entrypoint.sh b/metadata/entrypoint.sh index e2734f1..1486165 100644 --- a/metadata/entrypoint.sh +++ b/metadata/entrypoint.sh @@ -112,7 +112,7 @@ download_emby_config() { #删除临时文件config.mp4 if [ "${CLEAR_TEMP:=false}" = "true" ]; then - rm -f $MEDIA_DIR/temp/config.mp4 + rm -f $MEDIA_DIR/temp/config.mp4 fi } @@ -148,8 +148,8 @@ download_emby_media() { #删除临时文件all.mp4,pikpak.mo4 if [ "${CLEAR_TEMP:=false}" = "true" ]; then - rm -f $MEDIA_DIR/temp/all.mp4 - rm -f $MEDIA_DIR/temp/pikpak.mp4 + rm -f $MEDIA_DIR/temp/all.mp4 + rm -f $MEDIA_DIR/temp/pikpak.mp4 fi } @@ -176,7 +176,7 @@ download_jellyfin_config() { #删除临时文件 config_jf.mp4 if [ "${CLEAR_TEMP:=false}" = "true" ]; then - rm -f $MEDIA_DIR/temp/config_jf.mp4 + rm -f $MEDIA_DIR/temp/config_jf.mp4 fi } @@ -212,8 +212,8 @@ download_jellyfin_media() { #删除临时文件all_jf.mp4,pikpak_jf.mo4 if [ "${CLEAR_TEMP:=false}" = "true" ]; then - rm -f $MEDIA_DIR/temp/all_jf.mp4 - rm -f $MEDIA_DIR/temp/pikpak_jf.mp4 + rm -f $MEDIA_DIR/temp/all_jf.mp4 + rm -f $MEDIA_DIR/temp/pikpak_jf.mp4 fi }