fix update
This commit is contained in:
parent
42a4a8639d
commit
7a90e6c1a7
13
update
13
update
@ -78,6 +78,14 @@ else
|
|||||||
pip install ${PIP_OPTIONS} -r /tmp/MoviePilot*/requirements.txt
|
pip install ${PIP_OPTIONS} -r /tmp/MoviePilot*/requirements.txt
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "安装依赖成功"
|
echo "安装依赖成功"
|
||||||
|
# 下载插件
|
||||||
|
echo "正在下载插件..."
|
||||||
|
curl ${CURL_OPTIONS} "https://github.com/jxxghp/MoviePilot-Plugins/archive/refs/heads/main.zip" | busybox unzip -d /tmp -
|
||||||
|
echo "插件下载成功"
|
||||||
|
# 下载资源
|
||||||
|
echo "正在下载资源包..."
|
||||||
|
curl ${CURL_OPTIONS} "https://github.com/jxxghp/MoviePilot-Resources/archive/refs/heads/main.zip" | busybox unzip -d /tmp -
|
||||||
|
echo "资源包下载成功"
|
||||||
# 检查前端最新版本
|
# 检查前端最新版本
|
||||||
frontend_version=$(curl ${CURL_OPTIONS} "https://api.github.com/repos/jxxghp/MoviePilot-Frontend/releases/latest" | jq -r .tag_name)
|
frontend_version=$(curl ${CURL_OPTIONS} "https://api.github.com/repos/jxxghp/MoviePilot-Frontend/releases/latest" | jq -r .tag_name)
|
||||||
if [[ "${frontend_version}" == *v* ]]; then
|
if [[ "${frontend_version}" == *v* ]]; then
|
||||||
@ -89,6 +97,11 @@ else
|
|||||||
mv /tmp/MoviePilot* /app
|
mv /tmp/MoviePilot* /app
|
||||||
rm -rf /public
|
rm -rf /public
|
||||||
mv /tmp/dist /public
|
mv /tmp/dist /public
|
||||||
|
mv /tmp/MoviePilot-Plugins-main/plugins/* /app/app/plugins/
|
||||||
|
mv /tmp/MoviePilot-Resources-main/resources/* /app/app/helper/
|
||||||
|
mkdir -p /app/config/sites
|
||||||
|
mv /app/app/helper/user.sites.bin /app/config/sites/user.sites.bin
|
||||||
|
rm -rf /tmp/MoviePilot-*
|
||||||
echo "程序更新成功,前端版本:${frontend_version},后端版本:${release_version}"
|
echo "程序更新成功,前端版本:${frontend_version},后端版本:${release_version}"
|
||||||
else
|
else
|
||||||
echo "前端程序下载失败,继续使用旧的程序来启动..."
|
echo "前端程序下载失败,继续使用旧的程序来启动..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user