fix update
This commit is contained in:
parent
7bc4a6906a
commit
c50576b508
16
update
16
update
@ -23,10 +23,12 @@ if [ "${MOVIEPILOT_AUTO_UPDATE_DEV}" = "true" ]; then
|
||||
# 下载插件
|
||||
echo "正在下载插件..."
|
||||
curl ${CURL_OPTIONS} "https://github.com/jxxghp/MoviePilot-Plugins/archive/refs/heads/main.zip" | busybox unzip -d /tmp -
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "插件下载成功"
|
||||
# 下载资源
|
||||
echo "正在下载资源包..."
|
||||
curl ${CURL_OPTIONS} "https://github.com/jxxghp/MoviePilot-Resources/archive/refs/heads/main.zip" | busybox unzip -d /tmp -
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "资源包下载成功"
|
||||
# 检查前端最新版本
|
||||
frontend_version=$(curl ${CURL_OPTIONS} "https://api.github.com/repos/jxxghp/MoviePilot-Frontend/releases/latest" | jq -r .tag_name)
|
||||
@ -51,6 +53,12 @@ if [ "${MOVIEPILOT_AUTO_UPDATE_DEV}" = "true" ]; then
|
||||
else
|
||||
echo "前端最新版本号获取失败,继续启动..."
|
||||
fi
|
||||
else
|
||||
echo "资源包下载失败,继续使用旧的程序来启动..."
|
||||
fi
|
||||
else
|
||||
echo "插件下载失败,继续使用旧的程序来启动..."
|
||||
fi
|
||||
else
|
||||
echo "安装依赖失败,请重新拉取镜像"
|
||||
fi
|
||||
@ -81,10 +89,12 @@ else
|
||||
# 下载插件
|
||||
echo "正在下载插件..."
|
||||
curl ${CURL_OPTIONS} "https://github.com/jxxghp/MoviePilot-Plugins/archive/refs/heads/main.zip" | busybox unzip -d /tmp -
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "插件下载成功"
|
||||
# 下载资源
|
||||
echo "正在下载资源包..."
|
||||
curl ${CURL_OPTIONS} "https://github.com/jxxghp/MoviePilot-Resources/archive/refs/heads/main.zip" | busybox unzip -d /tmp -
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "资源包下载成功"
|
||||
# 检查前端最新版本
|
||||
frontend_version=$(curl ${CURL_OPTIONS} "https://api.github.com/repos/jxxghp/MoviePilot-Frontend/releases/latest" | jq -r .tag_name)
|
||||
@ -109,6 +119,12 @@ else
|
||||
else
|
||||
echo "前端最新版本号获取失败,继续启动..."
|
||||
fi
|
||||
else
|
||||
echo "资源包下载失败,继续使用旧的程序来启动..."
|
||||
fi
|
||||
else
|
||||
echo "插件下载失败,继续使用旧的程序来启动..."
|
||||
fi
|
||||
else
|
||||
echo "安装依赖失败,请重新拉取镜像"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user