From b8ebc36c511273b87238b1c29d5c1780cfb55f4e Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 6 Sep 2023 02:59:48 -0400 Subject: [PATCH] Update clean-lxcs.sh tweak --- misc/clean-lxcs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/clean-lxcs.sh b/misc/clean-lxcs.sh index 38bffa21..a595f1f3 100644 --- a/misc/clean-lxcs.sh +++ b/misc/clean-lxcs.sh @@ -25,7 +25,7 @@ GN=$(echo "\033[1;92m") CL=$(echo "\033[m") header_info while true; do - read -p "This Will Clean logs, cache and update apt lists on all LXC Containers. Proceed(y/n)?" yn + read -p "This Will Clean logs, cache and update apt lists on selected LXC Containers. Proceed(y/n)?" yn case $yn in [Yy]*) break ;; [Nn]*) exit ;; @@ -33,7 +33,7 @@ while true; do esac done clear -TITLE="Containers on node" +NODE=$(hostname) while read -r line; do TAG=$(echo "$line" | awk '{print $1}') ITEM=$(echo "$line" | awk '{print substr($0,36)}') @@ -43,7 +43,7 @@ while read -r line; do fi CTID_MENU+=("$TAG" "$ITEM " "OFF") done < <(pct list | awk 'NR>1') -excluded_containers=$(whiptail --title "$TITLE" --checklist \ +excluded_containers=$(whiptail --title "Containers on $NODE" --checklist \ "\nSelect containers to skip from cleaning:\n" \ 16 $(($MSG_MAX_LENGTH + 23)) 6 \ "${CTID_MENU[@]}" 3>&1 1>&2 2>&3 | tr -d '"') || exit