mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
logic changes
This commit is contained in:
@@ -1377,9 +1377,9 @@ check_service_status() {
|
|||||||
local status=$?
|
local status=$?
|
||||||
#true service is running false if not
|
#true service is running false if not
|
||||||
if [ $status -gt 0 ]; then
|
if [ $status -gt 0 ]; then
|
||||||
status=false
|
status=1
|
||||||
else
|
else
|
||||||
status=true
|
status=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return $status
|
return $status
|
||||||
@@ -1390,11 +1390,11 @@ check_salt_master_status() {
|
|||||||
echo "Checking salt-master status" >> "$setup_log" 2>&1
|
echo "Checking salt-master status" >> "$setup_log" 2>&1
|
||||||
salt-call state.show_top >> "$setup_log" 2>&1
|
salt-call state.show_top >> "$setup_log" 2>&1
|
||||||
local status=$?
|
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
|
if [ $status -gt 0 ]; then
|
||||||
status=false
|
status=1
|
||||||
else
|
else
|
||||||
status=true
|
status=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$status" >> "$setup_log" 2>&1
|
echo "$status" >> "$setup_log" 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user