fix(docker): avoid starting update worker on regular restart

This commit is contained in:
jxxghp
2026-09-17 17:37:38 +08:00
parent 1cea3bebf4
commit c2a232dec7
5 changed files with 51 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ CONFIG_DIR="${CONFIG_DIR:-/config}"
export VENV_PATH CONFIG_DIR
SUPERVISOR_CONFIG="/etc/supervisor/supervisord.conf"
RESTART_REQUEST_FILE="${CONFIG_DIR}/temp/moviepilot.pending_supervisor_restart"
INSTALL_MANIFEST="${CONFIG_DIR}/temp/moviepilot-update/install.json"
function INFO() {
echo "[INFO] ${1}"
@@ -17,6 +18,11 @@ function ERROR() {
echo "[ERROR] ${1}" >&2
}
if [ ! -f "${INSTALL_MANIFEST}" ]; then
INFO "→ 未检测到待安装的更新清单,跳过 Docker 更新 worker。"
exit 0
fi
cd /app || exit 1
INFO "→ 开始将已下载的更新包替换到 Docker 程序目录..."