Skip to content

Commit

Permalink
Merge pull request #2492 from wazuh/bug/2487-wazuh-indexer-remaining-…
Browse files Browse the repository at this point in the history
…files

Fixed Wazuh indexer remaining files
  • Loading branch information
teddytpc1 authored Oct 3, 2023
2 parents 27b4e3d + 96757e0 commit 3b40811
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions unattended_installer/install_functions/installCommon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,9 @@ function installCommon_rollBack() {
fi

if [[ ( -n "${indexer_remaining_files}" || -n "${indexer_installed}" ) && ( -n "${indexer}" || -n "${AIO}" || -n "${uninstall}" ) ]]; then
common_logger "Removing Wazuh indexer."
if [ "${sys_type}" == "yum" ]; then
eval "yum remove wazuh-indexer -y ${debug}"
elif [ "${sys_type}" == "apt-get" ]; then
eval "apt-get remove --purge wazuh-indexer -y ${debug}"
fi
common_logger "Wazuh indexer removed."
eval "rm -rf /var/lib/wazuh-indexer/ ${debug}"
eval "rm -rf /usr/share/wazuh-indexer/ ${debug}"
eval "rm -rf /etc/wazuh-indexer/ ${debug}"
fi

if [[ -n "${filebeat_installed}" && ( -n "${wazuh}" || -n "${AIO}" || -n "${uninstall}" ) ]]; then
Expand Down

0 comments on commit 3b40811

Please sign in to comment.