Standardize CT update backup handling (#15937)

This commit is contained in:
CanbiZ (MickLesk) authored and GitHub committed 2026-07-21 12:52:51 +02:00
1 parent d8efbd04d8
commit bd3e3bd5f9
76 files changed
+215 -626

No files matched your search

+4
View File
@@ -72,9 +72,13 @@ EOF
msg_ok "Migration complete!"
fi
create_backup /opt/patchmon/.env
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "PatchMon" "PatchMon/PatchMon" "singlefile" "latest" "/opt/patchmon" "patchmon-server-linux-$(arch_resolve)"
mv /opt/patchmon/PatchMon /opt/patchmon/patchmon-server
restore_backup
msg_info "Fetching PatchMon agent binaries"
RELEASE=$(get_latest_github_release "PatchMon/PatchMon")
[[ ! -d /opt/patchmon/agents ]] && mkdir -p /opt/patchmon/agents