Skip to content

Commit

Permalink
Merge pull request #2991 from wazuh/change/2967-unattended-installer-…
Browse files Browse the repository at this point in the history
…should-allow-installing-in-any-os

Allow installation on any OS
  • Loading branch information
c-bordon committed Jun 12, 2024
2 parents 8bc24e1 + 6bbaf9e commit 2c3e824
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions unattended_installer/install_functions/checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ function check_dist() {
fi
fi

if [ -n "${notsupported}" ] && [ -z "${ignore}" ]; then
common_logger -e "The recommended systems are: Red Hat Enterprise Linux 7, 8, 9; CentOS 7, 8; Amazon Linux 2; Ubuntu 16.04, 18.04, 20.04, 22.04. The current system does not match this list. Use -i|--ignore-check to skip this check."
exit 1
if [ -n "${notsupported}" ]; then
common_logger "The recommended systems are: Red Hat Enterprise Linux 7, 8, 9; CentOS 7, 8; Amazon Linux 2; Ubuntu 16.04, 18.04, 20.04, 22.04."
common_logger -w "The current system does not match with the list of recommended systems. The installation may not work properly."
fi
common_logger -d "Detected distribution name: ${DIST_NAME}"
common_logger -d "Detected distribution version: ${DIST_VER}"
Expand Down
4 changes: 2 additions & 2 deletions unattended_installer/install_functions/installMain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function getHelp() {
echo -e " Display this help and exit."
echo -e ""
echo -e " -i, --ignore-check"
echo -e " Ignore the check for system compatibility and minimum hardware requirements."
echo -e " Ignore the check for minimum hardware requirements."
echo -e ""
echo -e " -o, --overwrite"
echo -e " Overwrites previously installed components. This will erase all the existing configuration and data."
Expand Down Expand Up @@ -243,7 +243,7 @@ function main() {

checks_arch
if [ -n "${ignore}" ]; then
common_logger -w "Hardware and system checks ignored."
common_logger -w "Hardware checks ignored."
else
common_logger "Verifying that your system meets the recommended minimum hardware requirements."
checks_health
Expand Down

0 comments on commit 2c3e824

Please sign in to comment.