Added PostUpgrade tasks for Debian 13 and Alpine 3.23, refactored Type Detection of scripts tageting one system

This commit is contained in:
2026-01-11 01:16:33 +01:00
parent fd4bd0081a
commit d51a694daa
7 changed files with 123 additions and 30 deletions

View File

@@ -63,7 +63,8 @@ done
#CT updates
if $UpdateCT; then
for CTID in $(pct list | tail -n+2 | awk '{print $1}'); do
CTS=($(pct list | tail -n+2 | awk '{print $1}'))
for CTID in "${CTS[@]}"; do
#Skip CT if in ExcludeList
if [[ "${ExcludeList[*]}" =~ $CTID ]]; then echo "Notice: $CTID excluded"; continue; fi
# Skip CT if not running
@@ -80,7 +81,8 @@ fi
#VM Updates
if $UpdateVM; then
for VMID in $(qm list | tail -n+2 | awk '{print $1}'); do
VMS=($(qm list | tail -n+2 | awk '{print $1}'))
for VMID in "${VMS[@]}"; do
#Skip VM if in ExcludeList
if [[ "${ExcludeList[*]}" =~ $VMID ]]; then echo "Notice: $VMID excluded"; continue; fi
# Skip VM if not running