Fixed releaseUpgrade scripts
Updated Debian upgrade commands to be beter suited for scirpts Set command timeout to 0 for VM's Fixed container reboots Disabled Debian VM's upgrades - qemu-guest-agent quit while upgrading Checking if ID is alive before asking its distro
This commit is contained in:
@@ -31,7 +31,7 @@ while true; do
|
||||
DoAlpineReleaseUpdate=false
|
||||
break;;
|
||||
[Aa]* )
|
||||
DoDebianReleaseUpdate=true
|
||||
DoDebianReleaseUpdate=false
|
||||
DoAlpineReleaseUpdate=true
|
||||
break;;
|
||||
[Bb]* )
|
||||
@@ -76,6 +76,7 @@ fi
|
||||
|
||||
#CT updates
|
||||
if $UpdateCT; then
|
||||
TYPE=CT;
|
||||
for CTID in $(pct list | tail -n+2 | awk '{print $1}'); do
|
||||
#Skip CT if in ExcludeList
|
||||
if [[ "${ExcludeList[*]}" =~ $CTID ]]; then echo "Notice: $CTID excluded"; continue; fi
|
||||
@@ -88,6 +89,7 @@ fi
|
||||
|
||||
#VM Updates
|
||||
if $UpdateVM; then
|
||||
TYPE=VM;
|
||||
for VMID in $(qm list | tail -n+2 | awk '{print $1}'); do
|
||||
#Skip VM if in ExcludeList
|
||||
if [[ "${ExcludeList[*]}" =~ $VMID ]]; then echo "Notice: $VMID excluded"; continue; fi
|
||||
|
||||
Reference in New Issue
Block a user