Skip to content

Commit

Permalink
Fix ofline_instalation sh and remove commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
fcaffieri committed Jan 6, 2025
1 parent be15171 commit d4713ac
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions .github/actions/offline-installation/offline-installation.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
#!/bin/bash
export sys_type="$1"

# Gets the absolute path of the script, used to load the common.sh file
ABSOLUTE_PATH="$( cd $(dirname ${0}) ; pwd -P )"
. ${ABSOLUTE_PATH}/common.sh

indexer_installation
echo "INFO: Wazuh indexer installation completed."

manager_installation
echo "INFO: Wazuh manager installation completed."

filebeat_installation
echo "INFO: Filebeat installation completed."

dashboard_installation
echo "INFO: Wazuh dashboard installation completed."



function check_package() {

if [ "${sys_type}" == "deb" ]; then
Expand Down Expand Up @@ -211,3 +191,17 @@ function manager_installation() {
fi

}

export sys_type="$1"

indexer_installation
echo "INFO: Wazuh indexer installation completed."

manager_installation
echo "INFO: Wazuh manager installation completed."

filebeat_installation
echo "INFO: Filebeat installation completed."

dashboard_installation
echo "INFO: Wazuh dashboard installation completed."

0 comments on commit d4713ac

Please sign in to comment.