mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 11:12:51 +01:00
[fix] sed masks command return code, remove
This commit is contained in:
@@ -274,6 +274,7 @@ check_salt_master_status() {
|
|||||||
salt-call state.show_top > /dev/null 2>&1
|
salt-call state.show_top > /dev/null 2>&1
|
||||||
local status=$?
|
local status=$?
|
||||||
if [ $status -gt 0 ]; then
|
if [ $status -gt 0 ]; then
|
||||||
|
echo " Could not talk to salt master" >> "$setup_log" 2>&1
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
echo " Can talk to salt master" >> "$setup_log" 2>&1
|
echo " Can talk to salt master" >> "$setup_log" 2>&1
|
||||||
@@ -284,15 +285,15 @@ check_salt_master_status() {
|
|||||||
|
|
||||||
check_salt_minion_status() {
|
check_salt_minion_status() {
|
||||||
echo "Checking if the salt minion will respond to jobs" >> "$setup_log" 2>&1
|
echo "Checking if the salt minion will respond to jobs" >> "$setup_log" 2>&1
|
||||||
salt "$MINION_ID" test.ping | sed 's/ERROR/WARNING/' >> "$setup_log" 2>&1
|
salt "$MINION_ID" test.ping > /dev/null 2>&1
|
||||||
local status=$?
|
local status=$?
|
||||||
if [ $status -gt 0 ]; then
|
if [ $status -gt 0 ]; then
|
||||||
|
echo " Minion did not respond" >> "$setup_log" 2>&1
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
echo " Received job response from salt minion" >> "$setup_log" 2>&1
|
echo " Received job response from salt minion" >> "$setup_log" 2>&1
|
||||||
return 0;
|
return 0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check_soremote_pass() {
|
check_soremote_pass() {
|
||||||
|
|||||||
Reference in New Issue
Block a user