From 7b767ff58bf1d575959de2cb9410b3e55ee08715 Mon Sep 17 00:00:00 2001 From: failure101 <122152226+failure101@users.noreply.github.com> Date: Sat, 14 Feb 2026 16:42:29 +0100 Subject: [PATCH] Feature/lxc update patchmon aware (#11905) * update-lxcs.sh ist now patchmon-agent aware: if patchmon agent is detected inside LXC, then it is called after updating the container it is called with the argument "report" to relay the current update situation back to the patchmon system * Added status message if patchmon agent is found * whitespace added * Update tools/pve/update-lxcs.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> * Update tools/pve/update-lxcs.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> * removed os differentiation, removed use of explicit shell during call of patchmon-agent * removed os differentiation removed use of explicit shell during call of patchmon-agent fixed whitespace * Delete .git-setup-info not needed --------- Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- tools/pve/update-lxcs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/pve/update-lxcs.sh b/tools/pve/update-lxcs.sh index 7342731a1..ab998fef2 100644 --- a/tools/pve/update-lxcs.sh +++ b/tools/pve/update-lxcs.sh @@ -110,6 +110,11 @@ for container in $(pct list | awk '{if(NR>1) print $1}'); do container_hostname=$(pct exec "$container" hostname) containers_needing_reboot+=("$container ($container_hostname)") fi + # check if patchmon agent is present in container and run a report if found + if pct exec "$container" -- [ -e "/usr/local/bin/patchmon-agent" ]; then + echo -e "${BL}[Info]${GN} patchmon-agent found in ${BL} $container ${CL}, triggering report. \n" + pct exec "$container" -- "/usr/local/bin/patchmon-agent" "report" + fi fi done wait