Update monitor-all.sh

tweak
pull/1392/head
tteckster 2023-04-30 04:48:05 -04:00 committed by GitHub
parent 1dc63002ad
commit 465cd75015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

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