mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
This commit is contained in:
@@ -100,8 +100,8 @@ wait_for_manager() {
|
||||
echo "Received non-Active status response: "
|
||||
echo "$AGENTS_OUTPUT"
|
||||
echo
|
||||
echo "Manager is not ready after attempt $attempts of $maxAttempts, sleeping for 30 seconds."
|
||||
sleep 30
|
||||
echo "Manager is not ready after attempt $attempts of $maxAttempts, sleeping for 15 seconds."
|
||||
sleep 15
|
||||
fi
|
||||
done
|
||||
return 1
|
||||
@@ -165,7 +165,7 @@ if [ -f /opt/so/conf/wazuh/initial_agent_registration.log ]; then
|
||||
echo "Agent $AGENT_ID already registered!"
|
||||
exit 0
|
||||
else
|
||||
retries=30
|
||||
retries=20
|
||||
if wait_for_manager $retries; then
|
||||
if register_agent; then
|
||||
cleanup_creds
|
||||
|
||||
Reference in New Issue
Block a user