bkctld-check-setup: remove "set -x"

This commit is contained in:
Jérémy Lecour 2020-08-19 14:01:57 +02:00 committed by Jérémy Lecour
parent bc6a571595
commit 08a2e067c2
1 changed files with 1 additions and 3 deletions

View File

@ -44,7 +44,6 @@ if [ -n "${FIREWALL_RULES}" ] \
fi
# Check if jails are started
set -x
nb_on=0
nb_off=0
for jail_name in $(jails_list); do
@ -63,13 +62,12 @@ for jail_name in $(jails_list); do
fi
done
if [ "${nb_off}" -eq 0 ]; then
output="${output}OK - all jails are in their expected state .\n"
output="${output}OK - all jails are in their expected state.\n"
else
output="${output}CRITICAL - ${nb_off} jail(s) shouldn't be OFF !\n"
nb_crit=$((nb_crit + 1))
[ "${return}" -le 2 ] && return=2
fi
set +x
[ "${return}" -ge 0 ] && header="OK"
[ "${return}" -ge 1 ] && header="WARNING"