Standardize CT update backup handling (#15937)

This commit is contained in:
CanbiZ (MickLesk)
2026-07-21 12:52:51 +02:00
committed by GitHub
parent d8efbd04d8
commit bd3e3bd5f9
76 changed files with 215 additions and 626 deletions
+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