mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-07-25 10:15:43 +02:00
call highstate in soup with a retry if first fails vs bailing
This commit is contained in:
@@ -442,7 +442,13 @@ get_soup_script_hashes() {
|
||||
}
|
||||
|
||||
highstate() {
|
||||
# Run a highstate.
|
||||
# Run a highstate with a retry attempt.
|
||||
if salt-call state.highstate -l info queue=True; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo "Initial highstate attempt had a problem; retrying in 30 seconds."
|
||||
sleep 30
|
||||
salt-call state.highstate -l info queue=True
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user