mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-05 14:48:40 +08:00
fix(docker): avoid starting update worker on regular restart
This commit is contained in:
@@ -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 程序目录..."
|
||||
|
||||
Reference in New Issue
Block a user