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

using parameter to setup wazuh manager

parent e225d109
AGENT_NAME=$@
AGENT_NAME=$1
WAZUH_MANAGER=$2
echo "Agent Name is: "
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=$AGENT_NAME dpkg -i ./wazuh-agent_4.7.3-1_amd64.deb
echo "Wazuh Manager IP is: "
echo $WAZUH_MANAGER
wget https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.7.3-1_amd64.deb && sudo WAZUH_MANAGER=$WAZUH_MANAGER 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