mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Use double quotes around agent key to ensure interpolation
This commit is contained in:
@@ -73,7 +73,7 @@ register_agent() {
|
||||
# Importing key
|
||||
echo ""
|
||||
echo "Importing authentication key:"
|
||||
echo "y" | /var/ossec/bin/manage_agents -i '$AGENT_KEY'
|
||||
echo "y" | /var/ossec/bin/manage_agents -i "$AGENT_KEY"
|
||||
|
||||
# Restarting agent
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user