fix update

This commit is contained in:
jxxghp 2023-11-02 11:47:24 +08:00
parent 5a0f7ae838
commit 71c36881fb

5
update
View File

@ -36,8 +36,9 @@ install_backend_and_download_resources() {
download_and_unzip "https://github.com/jxxghp/MoviePilot-Frontend/releases/download/${frontend_version}/dist.zip" "dist" download_and_unzip "https://github.com/jxxghp/MoviePilot-Frontend/releases/download/${frontend_version}/dist.zip" "dist"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "前端程序下载成功" echo "前端程序下载成功"
rm -rf /app find /app/* -type d ! -path "/app/app/plugins" -exec rm -rf {} \;
mv /tmp/App /app find /app/* -type f ! -path "/app/app/plugins/*" -exec rm -f {} \;
mv -f /tmp/App/* /app/
rm -rf /public rm -rf /public
mv /tmp/dist /public mv /tmp/dist /public
mv -f /tmp/Plugins/plugins/* /app/app/plugins/ mv -f /tmp/Plugins/plugins/* /app/app/plugins/