Use double quotes around agent key to ensure interpolation

This commit is contained in:
Jason Ertel
2020-11-24 17:17:50 -05:00
parent d20560385f
commit 7fb264b4fe

View File

@@ -73,7 +73,7 @@ register_agent() {
# Importing key # Importing key
echo "" echo ""
echo "Importing authentication key:" 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 # Restarting agent
echo "" echo ""