The aim of this PR is to add a check to the Wazuh installation assistant that ensures that the sudo package is installed in the system. We found that in some systems, the sudo is not installed by default and it is necessary for the Wazuh installation.
However, it has not been included as a depenency. Therefore, if this tool is not installed the Wazuh installation is stopped informing with an error
root@debian11sudo:/home/vagrant# bash wazuh-install.sh -a -i -v
29/01/2024 16:40:00 DEBUG: Checking root permissions.
29/01/2024 16:40:00 DEBUG: Checking sudo package.
29/01/2024 16:40:00 ERROR: The sudo package is not installed and it is necessary for the installation.
Description
The aim of this PR is to add a check to the Wazuh installation assistant that ensures that the sudo package is installed in the system. We found that in some systems, the sudo is not installed by default and it is necessary for the Wazuh installation. However, it has not been included as a depenency. Therefore, if this tool is not installed the Wazuh installation is stopped informing with an error
Tests
:green_circle: CentOS 8: https://ci.wazuh.info/job/Test_unattended/5190/ :green_circle: CentOS 7: https://ci.wazuh.info/job/Test_unattended/5189/ :green_circle: Ubuntu 18: https://ci.wazuh.info/job/Test_unattended/5191/ :green_circle: Ubuntu 16: https://ci.wazuh.info/job/Test_unattended/5192/ :green_circle: Ubuntu 20: https://ci.wazuh.info/job/Test_unattended/5193/ :green_circle: AL2: https://ci.wazuh.info/job/Test_unattended/5194/ :green_circle: RHEL7: https://ci.wazuh.info/job/Test_unattended/5195/ :green_circle: RHEL8: https://ci.wazuh.info/job/Test_unattended/5188/