Fix for log_healthy
This commit is contained in:
parent
0f6778e863
commit
c52798ceef
@ -70,20 +70,6 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# log_healthy
|
|
||||||
(( ARG_LOG_HEALTHY > 0 )) && _LOG_HEALTHY=1
|
|
||||||
if (( _LOG_HEALTHY > 0 ))
|
|
||||||
then
|
|
||||||
if (( ARG_LOG > 0 ))
|
|
||||||
then
|
|
||||||
log "logging/showing passed health checks"
|
|
||||||
else
|
|
||||||
log "showing passed health checks (but not logging)"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
log "not logging/showing passed health checks"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# handle configuration file
|
# handle configuration file
|
||||||
[[ -n "${ARG_CONFIG_FILE}" ]] && _CONFIG_FILE="${ARG_CONFIG_FILE}"
|
[[ -n "${ARG_CONFIG_FILE}" ]] && _CONFIG_FILE="${ARG_CONFIG_FILE}"
|
||||||
if [[ ! -r ${_CONFIG_FILE} ]]
|
if [[ ! -r ${_CONFIG_FILE} ]]
|
||||||
@ -115,6 +101,20 @@ case "${_CFG_HEALTHY}" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# log_healthy
|
||||||
|
(( ARG_LOG_HEALTHY > 0 )) && _LOG_HEALTHY=1
|
||||||
|
if (( _LOG_HEALTHY > 0 ))
|
||||||
|
then
|
||||||
|
if (( ARG_LOG > 0 ))
|
||||||
|
then
|
||||||
|
log "logging/showing passed health checks"
|
||||||
|
else
|
||||||
|
log "showing passed health checks (but not logging)"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
log "not logging/showing passed health checks"
|
||||||
|
fi
|
||||||
|
|
||||||
# check required tools
|
# check required tools
|
||||||
if [[ ! -x ${_SWLIST_BIN} ]]
|
if [[ ! -x ${_SWLIST_BIN} ]]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user