mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
exit if retry fails
This commit is contained in:
@@ -802,7 +802,7 @@ else
|
|||||||
systemctl start salt-master
|
systemctl start salt-master
|
||||||
|
|
||||||
# Testing that that salt-master is up by checking that is it connected to itself
|
# Testing that that salt-master is up by checking that is it connected to itself
|
||||||
retry 50 10 "salt-call state.show_top -l error"
|
retry 50 10 "salt-call state.show_top -l error" || exit 1
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Ensuring python modules for Salt are installed and patched."
|
echo "Ensuring python modules for Salt are installed and patched."
|
||||||
@@ -836,7 +836,7 @@ else
|
|||||||
systemctl start salt-master
|
systemctl start salt-master
|
||||||
|
|
||||||
# Testing that that salt-master is up by checking that is it connected to itself
|
# Testing that that salt-master is up by checking that is it connected to itself
|
||||||
retry 50 10 "salt-call state.show_top -l error"
|
retry 50 10 "salt-call state.show_top -l error" || exit 1
|
||||||
|
|
||||||
echo "Running a highstate. This could take several minutes."
|
echo "Running a highstate. This could take several minutes."
|
||||||
salt-call state.highstate -l info queue=True
|
salt-call state.highstate -l info queue=True
|
||||||
|
|||||||
Reference in New Issue
Block a user