From c52798ceefeb15ea46dc5e96912cf20aa9066e44 Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Mon, 22 Oct 2018 10:28:53 +0200 Subject: [PATCH] Fix for log_healthy --- .../hp-ux/check_hpux_patch_version.sh | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/sources/lib/platform/hp-ux/check_hpux_patch_version.sh b/sources/lib/platform/hp-ux/check_hpux_patch_version.sh index 3c5c416..95f9550 100644 --- a/sources/lib/platform/hp-ux/check_hpux_patch_version.sh +++ b/sources/lib/platform/hp-ux/check_hpux_patch_version.sh @@ -70,20 +70,6 @@ do esac 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 [[ -n "${ARG_CONFIG_FILE}" ]] && _CONFIG_FILE="${ARG_CONFIG_FILE}" if [[ ! -r ${_CONFIG_FILE} ]] @@ -115,6 +101,20 @@ case "${_CFG_HEALTHY}" in ;; 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 if [[ ! -x ${_SWLIST_BIN} ]] then