From f9f2744d3f2e043ebd501cfaf5cd1385f8e81242 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 13 Aug 2020 17:49:05 -0400 Subject: [PATCH] logic changes --- setup/so-functions | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index 7537ceaa7..480c86604 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1377,9 +1377,9 @@ check_service_status() { local status=$? #true service is running false if not if [ $status -gt 0 ]; then - status=false + status=1 else - status=true + status=0 fi return $status @@ -1390,11 +1390,11 @@ check_salt_master_status() { echo "Checking salt-master status" >> "$setup_log" 2>&1 salt-call state.show_top >> "$setup_log" 2>&1 local status=$? - #true if we can talk to salt master false if not + #true if there is an issue talking to salt master if [ $status -gt 0 ]; then - status=false + status=1 else - status=true + status=0 fi echo "$status" >> "$setup_log" 2>&1