Backup before replacing kb on uninstallation

This commit is contained in:
KOWX712
2025-01-15 22:36:39 +08:00
parent aa0837ec49
commit 2542e1a18a

View File

@@ -14,4 +14,5 @@ if [ -d "$TS" ]; then
[ -L "$TS/webroot" ] && rm -f "$TS/webroot"
[ -L "$TS/action.sh" ] && rm -f "$TS/action.sh"
fi
mv -f "$SCRIPT_DIR/keybox.xml" "$SCRIPT_DIR/keybox.xml.bak"
xxd -r -p "$MODPATH/common/.default" | base64 -d > "$SCRIPT_DIR/keybox.xml"