Commit d3039d6b authored by Wen Wei Li's avatar Wen Wei Li

using parameter to determine the agent name

parent 97ff3b0b
AGENT_NAME=$@
echo $AGENT_NAME
wget https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.7.3-1_amd64.deb && sudo WAZUH_MANAGER='192.168.88.140' WAZUH_AGENT_NAME=$@@ dpkg -i ./wazuh-agent_4.7.3-1_amd64.deb
wget https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.7.3-1_amd64.deb && sudo WAZUH_MANAGER='192.168.88.140' WAZUH_AGENT_NAME=$AGENT_NAME dpkg -i ./wazuh-agent_4.7.3-1_amd64.deb
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment