mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-25 01:34:28 +01:00
Update update-lxcs.sh
display hostname of containers that require a reboot
This commit is contained in:
parent
61773ad6af
commit
3b4b021c9a
@ -93,7 +93,9 @@ for container in $(pct list | awk '{if(NR>1) print $1}'); do
|
||||
update_container $container
|
||||
fi
|
||||
if pct exec "$container" -- [ -e "/var/run/reboot-required" ]; then
|
||||
containers_needing_reboot+=("$container")
|
||||
# Get the container's hostname and add it to the list
|
||||
container_hostname=$(pct exec "$container" hostname)
|
||||
containers_needing_reboot+=("$container - $container_hostname")
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user