From 0e60843e9212d23482072cdbdb94080fb79eb828 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 28 Apr 2026 16:24:41 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- proxmenu-scripts.sh | 15 ++++----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/defaults.inc b/defaults.inc index bf33c9b..723b914 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="$1" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.4.28-3' +VERS='2026.4.28-4' noupdate=' restart cpu mm ' diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index 2b1595f..518900b 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -238,7 +238,6 @@ RESTART_PVE_SERVICES(){ } SET_VM_SHUTDOWNTIMEOUT(){ - # regex="down=([[:digit:]]+)" if [ "${1}" == "" ]; then echo -en "${idsCL[LightCyan]}Would you like to set all VM's shutdown timeout to 180secs (Y/n)?${idsCL[Default]} " read -n 1 choice @@ -247,16 +246,10 @@ SET_VM_SHUTDOWNTIMEOUT(){ fi case "${choice}" in [Nn]) echo;; - *) echo - #for vmid in $(pvesh get /cluster/resources --type vm --output-format json | jq '.[].vmid'); do - # NEW_TIMEOUTS=$(grep "startup:" /etc/pve/nodes/*/qemu-server/${VMID}.conf | awk '{print $2}') - # NEW_TIMEOUTS="(${NEW_TIMEOUTS})" - # [[ $NEW_TIMEOUTS =~ $regex ]] && down_value="${BASH_REMATCH[1]}" - echo "Updating all VM's shutdown timeout to 180 seconds..." - # sed -i "/startup:/c startup: ${NEW_TIMEOUTS}" /etc/pve/nodes/*/qemu-server/*.conf - sed -E -i 's/(down=)[0-9]+/\1180/g' /etc/pve/nodes/*/qemu-server/*.conf - - #done + *) + echo "Updating all VM's shutdown timeout to 180 seconds..." + sed -E -i 's/(down=)[0-9]+/\1180/g' /etc/pve/nodes/*/qemu-server/*.conf + [ ${action-x} ] && exit 0 || ENTER2CONTINUE ;; esac }