From 911d19cab6be9bf8cbb7f7abdbd4455438d3d860 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 23 Feb 2023 12:48:16 -0500 Subject: [PATCH] Update update-lxcs.sh add option to exclude an additional container by adding the CTID at the end of the shell command --- misc/update-lxcs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/update-lxcs.sh b/misc/update-lxcs.sh index 7aa00b17..b423b508 100644 --- a/misc/update-lxcs.sh +++ b/misc/update-lxcs.sh @@ -34,7 +34,8 @@ while true; do esac done clear -containers=$(pct list | tail -n +2 | cut -f1 -d' ') +exclude_container="$@" +containers=$(pct list | tail -n +2 | cut -f1 -d' ' | grep -vE "^($exclude_container)$") function update_container() { container=$1 header_info @@ -49,7 +50,6 @@ function update_container() { esac } header_info - for container in $containers; do status=$(pct status $container) template=$(pct config $container | grep -q "template:" && echo "true" || echo "false")