mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
fix errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user