remove wazuh-agent exlude being added to repo conf during setup

This commit is contained in:
m0duspwnens
2020-05-20 11:41:33 -04:00
parent d4840d203c
commit e07f6af156

View File

@@ -435,7 +435,6 @@ fi
if [[ "$WAZUH" = 1 ]]; then if [[ "$WAZUH" = 1 ]]; then
if [ $OS = 'centos' ]; then if [ $OS = 'centos' ]; then
yum -y install wazuh-agent-3.10.2-1 >> "$setup_log" 2>&1 yum -y install wazuh-agent-3.10.2-1 >> "$setup_log" 2>&1
echo "exclude=wazuh-agent" >> /etc/yum.repos.d/wazuh.repo
else else
apt-get -y install wazuh-agent=3.10.2-1 >> "$setup_log" 2>&1 apt-get -y install wazuh-agent=3.10.2-1 >> "$setup_log" 2>&1
apt-mark hold wazuh-agent >> "$setup_log" 2>&1 apt-mark hold wazuh-agent >> "$setup_log" 2>&1