From 829490da19f35cff0aaf9402d255cc18b9bc8568 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 13 Aug 2020 17:05:50 -0400 Subject: [PATCH] fix errors --- setup/so-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/so-functions b/setup/so-functions index 5f6be3f8e..7537ceaa7 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1376,7 +1376,7 @@ check_service_status() { systemctl status $service_name > /dev/null 2>&1 local status=$? #true service is running false if not - if [ $service_status -gt 0 ]; then + if [ $status -gt 0 ]; then status=false else status=true @@ -1391,7 +1391,7 @@ check_salt_master_status() { salt-call state.show_top >> "$setup_log" 2>&1 local status=$? #true if we can talk to salt master false if not - if [ $exit_code -gt 0 ]; then + if [ $status -gt 0 ]; then status=false else status=true