|
|
@ -32,11 +32,9 @@ echo '#!/usr/bin/env bash
|
|
|
|
excluded_instances=("$@")
|
|
|
|
excluded_instances=("$@")
|
|
|
|
echo "Excluded instances: ${excluded_instances[@]}"
|
|
|
|
echo "Excluded instances: ${excluded_instances[@]}"
|
|
|
|
|
|
|
|
|
|
|
|
while true
|
|
|
|
while true; do
|
|
|
|
do
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for instance in $(pct list | awk '\''{if(NR>1) print $1}'\''; qm list | awk '\''{if(NR>1) print $1}'\'')
|
|
|
|
for instance in $(pct list | awk '\''{if(NR>1) print $1}'\''; qm list | awk '\''{if(NR>1) print $1}'\''); do
|
|
|
|
do
|
|
|
|
|
|
|
|
# Skip excluded instances
|
|
|
|
# Skip excluded instances
|
|
|
|
if [[ " ${excluded_instances[@]} " =~ " ${instance} " ]]; then
|
|
|
|
if [[ " ${excluded_instances[@]} " =~ " ${instance} " ]]; then
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|