tteckster 1 год назад
Родитель
Сommit
544f163e15
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      misc/update-lxcs.sh

+ 2 - 2
misc/update-lxcs.sh

@@ -34,7 +34,7 @@ while true; do
   esac
   esac
 done
 done
 clear
 clear
-TITLE="Containers on node"
+NODE=$(hostname)
 while read -r line; do
 while read -r line; do
   TAG=$(echo "$line" | awk '{print $1}')
   TAG=$(echo "$line" | awk '{print $1}')
   ITEM=$(echo "$line" | awk '{print substr($0,36)}')
   ITEM=$(echo "$line" | awk '{print substr($0,36)}')
@@ -44,7 +44,7 @@ while read -r line; do
   fi
   fi
   CTID_MENU+=("$TAG" "$ITEM " "OFF")
   CTID_MENU+=("$TAG" "$ITEM " "OFF")
 done < <(pct list | awk 'NR>1')
 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 updates:\n" \
   "\nSelect containers to skip from updates:\n" \
   16 $(($MSG_MAX_LENGTH + 23)) 6 \
   16 $(($MSG_MAX_LENGTH + 23)) 6 \
   "${CTID_MENU[@]}" 3>&1 1>&2 2>&3 | tr -d '"') || exit
   "${CTID_MENU[@]}" 3>&1 1>&2 2>&3 | tr -d '"') || exit