mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-16 10:13:26 +01:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user