From 71c36881fb1cba77d2febcb1a8687e550d7b4330 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 2 Nov 2023 11:47:24 +0800 Subject: [PATCH] fix update --- update | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update b/update index 6408d478..f64a90f3 100644 --- a/update +++ b/update @@ -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" if [ $? -eq 0 ]; then echo "前端程序下载成功" - rm -rf /app - mv /tmp/App /app + find /app/* -type d ! -path "/app/app/plugins" -exec rm -rf {} \; + find /app/* -type f ! -path "/app/app/plugins/*" -exec rm -f {} \; + mv -f /tmp/App/* /app/ rm -rf /public mv /tmp/dist /public mv -f /tmp/Plugins/plugins/* /app/app/plugins/