mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-27 15:07:51 +02:00
Make test ping retry
This commit is contained in:
@@ -209,10 +209,12 @@ function createIDHNODE() {
|
||||
}
|
||||
|
||||
function testConnection() {
|
||||
salt "$MINION_ID" test.ping
|
||||
retry 5 10 "salt '$MINION_ID' test.ping" 0
|
||||
local ret=$?
|
||||
if [[ $ret != 0 ]]; then
|
||||
echo "The Minion has been accepted but is not online. Try again later"
|
||||
echo "Deleting the key"
|
||||
deleteminion
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user