wazuh / wazuh-packages

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

Fixed deprecation message for hash.sh script #3014

Closed c-bordon closed 5 months ago

c-bordon commented 5 months ago

close https://github.com/wazuh/wazuh-packages/issues/3013

An update is made to the execution of the hash.sh script so that it does not display the script deprecation message.

Test without changes ```console [root@centos8 ~]# bash wazuh-install.sh -a 24/06/2024 17:08:55 INFO: Starting Wazuh installation assistant. Wazuh version: 4.9.0 24/06/2024 17:08:55 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/06/2024 17:08:55 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/06/2024 17:08:55 INFO: Wazuh web interface port will be 443. 24/06/2024 17:08:56 WARNING: The system has Firewalld enabled. Please ensure that traffic is allowed on these ports: 1515, 1514, 443. 24/06/2024 17:08:57 INFO: Wazuh development repository added. 24/06/2024 17:08:57 INFO: --- Configuration files --- 24/06/2024 17:08:57 INFO: Generating configuration files. 24/06/2024 17:08:57 INFO: Generating the root certificate. 24/06/2024 17:08:57 INFO: Generating Admin certificates. 24/06/2024 17:08:57 INFO: Generating Wazuh indexer certificates. 24/06/2024 17:08:57 INFO: Generating Filebeat certificates. 24/06/2024 17:08:57 INFO: Generating Wazuh dashboard certificates. 24/06/2024 17:08:57 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation. 24/06/2024 17:08:58 INFO: --- Wazuh indexer --- 24/06/2024 17:08:58 INFO: Starting Wazuh indexer installation. 24/06/2024 17:11:27 INFO: Wazuh indexer installation finished. 24/06/2024 17:11:27 INFO: Wazuh indexer post-install configuration finished. 24/06/2024 17:11:27 INFO: Starting service wazuh-indexer. 24/06/2024 17:11:37 INFO: wazuh-indexer service started. 24/06/2024 17:11:37 INFO: Initializing Wazuh indexer cluster security settings. 24/06/2024 17:11:40 INFO: Wazuh indexer cluster security configuration initialized. 24/06/2024 17:11:40 INFO: Wazuh indexer cluster initialized. 24/06/2024 17:11:40 INFO: --- Wazuh server --- 24/06/2024 17:11:40 INFO: Starting the Wazuh manager installation. 24/06/2024 17:13:19 INFO: Wazuh manager installation finished. 24/06/2024 17:13:19 INFO: Wazuh manager vulnerability detection configuration finished. 24/06/2024 17:13:19 INFO: Starting service wazuh-manager. 24/06/2024 17:13:32 INFO: wazuh-manager service started. 24/06/2024 17:13:32 INFO: Starting Filebeat installation. 24/06/2024 17:13:43 INFO: Filebeat installation finished. 24/06/2024 17:13:46 INFO: Filebeat post-install configuration finished. 24/06/2024 17:13:46 INFO: Starting service filebeat. 24/06/2024 17:13:47 INFO: filebeat service started. 24/06/2024 17:13:47 INFO: --- Wazuh dashboard --- 24/06/2024 17:13:47 INFO: Starting Wazuh dashboard installation. 24/06/2024 17:15:52 INFO: Wazuh dashboard installation finished. 24/06/2024 17:15:52 INFO: Wazuh dashboard post-install configuration finished. 24/06/2024 17:15:52 INFO: Starting service wazuh-dashboard. 24/06/2024 17:15:53 INFO: wazuh-dashboard service started. 24/06/2024 17:15:53 INFO: Updating the internal users. 24/06/2024 17:15:55 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder. ************************************************************************** ** This tool will be deprecated in the next major release of OpenSearch ** ** https://github.com/opensearch-project/security/issues/1755 ** ************************************************************************** ************************************************************************** ** This tool will be deprecated in the next major release of OpenSearch ** ** https://github.com/opensearch-project/security/issues/1755 ** ************************************************************************** ************************************************************************** ** This tool will be deprecated in the next major release of OpenSearch ** ** https://github.com/opensearch-project/security/issues/1755 ** ************************************************************************** ************************************************************************** ** This tool will be deprecated in the next major release of OpenSearch ** ** https://github.com/opensearch-project/security/issues/1755 ** ************************************************************************** ************************************************************************** ** This tool will be deprecated in the next major release of OpenSearch ** ** https://github.com/opensearch-project/security/issues/1755 ** ************************************************************************** ************************************************************************** ** This tool will be deprecated in the next major release of OpenSearch ** ** https://github.com/opensearch-project/security/issues/1755 ** ************************************************************************** ************************************************************************** ** This tool will be deprecated in the next major release of OpenSearch ** ** https://github.com/opensearch-project/security/issues/1755 ** ************************************************************************** 24/06/2024 17:16:02 INFO: Updated username and password in Filebeat Keystore. Also updated filebeat.yml file to use the Filebeat Keystore username and password. 24/06/2024 17:16:32 INFO: Initializing Wazuh dashboard web application. 24/06/2024 17:16:32 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:16:47 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:17:02 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:17:18 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:17:33 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:17:48 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:18:03 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:18:18 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:18:33 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:18:48 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:19:03 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:19:18 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:19:33 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:19:48 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:20:03 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:20:18 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:20:33 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:20:48 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:21:03 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:21:18 INFO: Wazuh dashboard web application not yet initialized. Waiting... 24/06/2024 17:21:33 ERROR: Wazuh dashboard installation failed. 24/06/2024 17:21:33 INFO: --- Removing existing Wazuh installation --- 24/06/2024 17:21:33 INFO: Removing Wazuh manager. 24/06/2024 17:22:02 INFO: Wazuh manager removed. 24/06/2024 17:22:02 INFO: Removing Wazuh indexer. 24/06/2024 17:22:03 WARNING: The Wazuh indexer package could not be removed. 24/06/2024 17:22:03 INFO: Removing Filebeat. 24/06/2024 17:22:04 WARNING: The Filebeat package could not be removed. 24/06/2024 17:22:04 INFO: Removing Wazuh dashboard. 24/06/2024 17:22:12 WARNING: The Wazuh dashboard package could not be removed. 24/06/2024 17:22:12 INFO: Installation cleaned. Check the /var/log/wazuh-install.log file to learn more about the issue. ```
Test with changes ```console [root@centos8 ~]# bash wazuh-install.sh -a 24/06/2024 17:26:07 INFO: Starting Wazuh installation assistant. Wazuh version: 4.9.0 24/06/2024 17:26:07 INFO: Verbose logging redirected to /var/log/wazuh-install.log 24/06/2024 17:26:07 INFO: Verifying that your system meets the recommended minimum hardware requirements. 24/06/2024 17:26:08 INFO: Wazuh web interface port will be 443. 24/06/2024 17:26:08 WARNING: The system has Firewalld enabled. Please ensure that traffic is allowed on these ports: 1515, 1514, 443. 24/06/2024 17:26:09 INFO: Wazuh development repository added. 24/06/2024 17:26:09 INFO: --- Configuration files --- 24/06/2024 17:26:09 INFO: Generating configuration files. 24/06/2024 17:26:09 INFO: Generating the root certificate. 24/06/2024 17:26:10 INFO: Generating Admin certificates. 24/06/2024 17:26:10 INFO: Generating Wazuh indexer certificates. 24/06/2024 17:26:10 INFO: Generating Filebeat certificates. 24/06/2024 17:26:10 INFO: Generating Wazuh dashboard certificates. 24/06/2024 17:26:10 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation. 24/06/2024 17:26:10 INFO: --- Wazuh indexer --- 24/06/2024 17:26:10 INFO: Starting Wazuh indexer installation. 24/06/2024 17:28:29 INFO: Wazuh indexer installation finished. 24/06/2024 17:28:29 INFO: Wazuh indexer post-install configuration finished. 24/06/2024 17:28:29 INFO: Starting service wazuh-indexer. 24/06/2024 17:28:39 INFO: wazuh-indexer service started. 24/06/2024 17:28:39 INFO: Initializing Wazuh indexer cluster security settings. 24/06/2024 17:28:43 INFO: Wazuh indexer cluster security configuration initialized. 24/06/2024 17:28:43 INFO: Wazuh indexer cluster initialized. 24/06/2024 17:28:43 INFO: --- Wazuh server --- 24/06/2024 17:28:43 INFO: Starting the Wazuh manager installation. 24/06/2024 17:30:28 INFO: Wazuh manager installation finished. 24/06/2024 17:30:28 INFO: Wazuh manager vulnerability detection configuration finished. 24/06/2024 17:30:28 INFO: Starting service wazuh-manager. 24/06/2024 17:30:41 INFO: wazuh-manager service started. 24/06/2024 17:30:41 INFO: Starting Filebeat installation. 24/06/2024 17:30:49 INFO: Filebeat installation finished. 24/06/2024 17:30:51 INFO: Filebeat post-install configuration finished. 24/06/2024 17:30:51 INFO: Starting service filebeat. 24/06/2024 17:30:51 INFO: filebeat service started. 24/06/2024 17:30:51 INFO: --- Wazuh dashboard --- 24/06/2024 17:30:51 INFO: Starting Wazuh dashboard installation. 24/06/2024 17:32:56 INFO: Wazuh dashboard installation finished. 24/06/2024 17:32:56 INFO: Wazuh dashboard post-install configuration finished. 24/06/2024 17:32:56 INFO: Starting service wazuh-dashboard. 24/06/2024 17:32:56 INFO: wazuh-dashboard service started. 24/06/2024 17:32:56 INFO: Updating the internal users. 24/06/2024 17:32:59 INFO: A backup of the internal users has been saved in the /etc/wazuh-indexer/internalusers-backup folder. 24/06/2024 17:33:07 INFO: The filebeat.yml file has been updated to use the Filebeat Keystore username and password. 24/06/2024 17:33:38 INFO: Initializing Wazuh dashboard web application. 24/06/2024 17:33:39 INFO: Wazuh dashboard web application initialized. 24/06/2024 17:33:39 INFO: --- Summary --- 24/06/2024 17:33:39 INFO: You can access the web interface https://:443 User: admin Password: jzD3C*81mHTN0ySUb+3X3aHTPNxRph1G 24/06/2024 17:33:40 INFO: Installation finished. ```