Commit 34bbb86 1 parent 0403f1f commit 34bbb86 Copy full SHA for 34bbb86
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ install_backend_and_download_resources() {
30
30
if [[ " ${frontend_version} " == * v* ]]; then
31
31
if download_and_unzip " https://github.com/jxxghp/MoviePilot-Frontend/releases/download/${frontend_version} /dist.zip" " dist" ; then
32
32
echo " 前端程序下载成功"
33
+ # 提前备份插件目录
34
+ rm -rf /plugins
35
+ mkdir -p /plugins
36
+ cp -a /app/app/plugins/* /plugins/
37
+ # 不备份__init__.py
38
+ rm -f /plugins/__init__.py
33
39
# 清空目录
34
40
rm -rf /app
35
41
mkdir -p /app
@@ -45,12 +51,6 @@ install_backend_and_download_resources() {
45
51
echo " 开始更新插件..."
46
52
if download_and_unzip " https://github.com/jxxghp/MoviePilot-Plugins/archive/refs/heads/main.zip" " Plugins" ; then
47
53
echo " 插件下载成功"
48
- # 备份插件目录
49
- rm -rf /plugins
50
- mkdir -p /plugins
51
- cp -a /app/app/plugins/* /plugins/
52
- # 不备份__init__.py
53
- rm -f /plugins/__init__.py
54
54
# 恢复插件目录
55
55
cp -a /plugins/* /app/app/plugins/
56
56
# 插件仓库
You can’t perform that action at this time.
0 commit comments