wazuh / wazuh-packages

Wazuh - Tools for packages creation
https://wazuh.com
GNU General Public License v2.0
98 stars 89 forks source link

Silenced sudo package check #2807

Closed davidcr01 closed 5 months ago

davidcr01 commented 5 months ago
Related issue
https://github.com/wazuh/wazuh-packages/issues/2776

Complementary PR of https://github.com/wazuh/wazuh-packages/pull/2801.

The aim of this PR is to silence the output of the sudo packages check. I noticed that, when the sudo package is installed, the output of the command -v command is displayed in the prompt.

root@ubuntu22:/home/vagrant# bash wazuh-install.sh -g -v
01/02/2024 12:07:58 DEBUG: Checking root permissions.
01/02/2024 12:07:58 DEBUG: Checking sudo package.
/usr/bin/sudo
01/02/2024 12:07:58 INFO: Starting Wazuh installation assistant. Wazuh version: 4.8.0

With this change, the output is the following:

root@ubuntu22:/home/vagrant# bash wazuh-install.sh -g -v
01/02/2024 15:31:52 DEBUG: Checking root permissions.
01/02/2024 15:31:52 DEBUG: Checking sudo package.
01/02/2024 12:07:58 INFO: Starting Wazuh installation assistant. Wazuh version: 4.8.0