fix(update): clear tmp directory causes data loss

fix https://github.com/jxxghp/MoviePilot/issues/2996
This commit is contained in:
DDSRem
2024-11-16 10:53:33 +08:00
parent 665da9dad3
commit edc30266c8
2 changed files with 20 additions and 12 deletions

View File

@@ -3,7 +3,7 @@
# shellcheck disable=SC2016
# 使用 `envsubst` 将模板文件中的 ${NGINX_PORT} 替换为实际的环境变量值
NGINX_CLIENT_MAX_BODY_SIZE=${NGINX_CLIENT_MAX_BODY_SIZE:-10m}
export NGINX_CLIENT_MAX_BODY_SIZE=${NGINX_CLIENT_MAX_BODY_SIZE:-10m}
envsubst '${NGINX_PORT}${PORT}${NGINX_CLIENT_MAX_BODY_SIZE}' < /etc/nginx/nginx.template.conf > /etc/nginx/nginx.conf
# 自动更新
cd /