wazuh / wazuh-packages

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

Dependencies installation is reworked in Installation assistant #3002

Closed davidcr01 closed 1 week ago

davidcr01 commented 2 weeks ago
Related issue
https://github.com/wazuh/wazuh-packages/issues/2879

Description

The aim of this PR is to rework the dependencies installation of the Installation assistant. The original aim of this development is to make the Installation assistant ask for permission to install the necessary dependencies in the performed installation.

Before, the script installed the necessary dependencies for the installation, without asking the user for confirmation. Now, to control this, a new parameter -id|--install-dependencies has been added. If the user wants the Installation assistant to install the dependencies automatically, a new parameter must be added. Otherwise, the installation will be stopped if a dependency is required.

Example:

[!NOTE] WARNING: To perform the installation, the following package/s must be installed: lsof, openssl, software-properties-common. The following package/s will be removed after the installation: lsof, openssl. Add the -id|--install-dependencies parameter to install them automatically or install them manually.

Other changes

Other changes and improvements have been added:

Tests