Skip to content

Commit 5e41385

Browse files
authored
Update backup.sh
1 parent 8f6cfe9 commit 5e41385

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ cd /opt/hiddify-config/hiddify-panel/
8282
python3 -m hiddifypanel backup
8383
cd /opt/hiddify-config/hiddify-panel/backup
8484
latest_file=\$(ls -t *.json | head -n1)
85-
zip /root/ac-backup.zip /opt/hiddify-config/hiddify-panel/backup/\${latest_file}
85+
rm -f /root/ac-backup.zip
86+
zip /root/ac-backup.zip /opt/hiddify-config/hiddify-panel/backup/\$latest_file
8687
EOF
8788
)
8889
ACLover="hiddify backup"

0 commit comments

Comments
 (0)