Merge pull request #1567 from sundxfansky/main

This commit is contained in:
jxxghp
2024-02-29 17:20:45 +08:00
committed by GitHub

4
update
View File

@ -19,6 +19,8 @@ download_and_unzip() {
# 下载程序资源,$1: 后端版本路径
install_backend_and_download_resources() {
# 清理临时目录,上次安装失败可能有残留
rm -rf /tmp/*
if download_and_unzip "https://github.com/jxxghp/MoviePilot/archive/refs/${1}" "App"; then
echo "后端程序下载成功"
pip install ${PIP_OPTIONS} --upgrade pip
@ -128,4 +130,4 @@ elif [[ "${MOVIEPILOT_AUTO_UPDATE}" = "false" ]]; then
echo "程序自动升级已关闭如需自动升级请在创建容器时设置环境变量MOVIEPILOT_AUTO_UPDATE=release"
else
echo "MOVIEPILOT_AUTO_UPDATE 变量设置错误"
fi
fi