exit if retry fails

This commit is contained in:
m0duspwnens
2021-05-07 14:48:02 -04:00
parent 009f7617c1
commit 9eb63b17f9

View File

@@ -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