Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(install): fix source install with quiet mode related to gorgone v…
Browse files Browse the repository at this point in the history
…ars (#11694)

Refs: MON-14806

Co-authored-by: Eric Coquard <eric.coquard@gmail.com>
  • Loading branch information
kduret and kermith72 committed Sep 6, 2022
1 parent 033ee10 commit 4bf1a0e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
28 changes: 15 additions & 13 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,19 +210,21 @@ for binary in $BINARIES; do
fi
done

###### Mandatory step
# ask if gorgone is already installed
echo -e "\n$line"
echo -e "\t$(gettext "Check mandatory gorgone service status")"
echo -e "$line"

yes_no_default "$(gettext "Is the Gorgone module already installed?")"
if [ "$?" -ne 0 ] ; then
echo_failure "\n$(gettext "Gorgone is required.\nPlease install it before launching this script")" "$fail"
echo -e "\n\t$(gettext "Please read the documentation to manage the Gorgone daemon installation")"
echo -e "\t$(gettext "Available on github") : https://github.com/centreon/centreon-gorgone"
echo -e "\t$(gettext "or on the centreon documentation") : https://documentation.centreon.com/\n"
exit 1
if [ "$silent_install" -ne 1 ] ; then
###### Mandatory step
# ask if gorgone is already installed
echo -e "\n$line"
echo -e "\t$(gettext "Check mandatory gorgone service status")"
echo -e "$line"

yes_no_default "$(gettext "Is the Gorgone module already installed?")"
if [ "$?" -ne 0 ] ; then
echo_failure "\n$(gettext "Gorgone is required.\nPlease install it before launching this script")" "$fail"
echo -e "\n\t$(gettext "Please read the documentation to manage the Gorgone daemon installation")"
echo -e "\t$(gettext "Available on github") : https://github.com/centreon/centreon-gorgone"
echo -e "\t$(gettext "or on the centreon documentation") : https://documentation.centreon.com/\n"
exit 1
fi
fi

# Script stop if one binary wasn't found
Expand Down
4 changes: 4 additions & 0 deletions tmpl/vardistrib/defaults
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ MONITORINGENGINE_LOG="/var/log/centreon-engine"
MONITORINGENGINE_USER="centreon-engine"
BROKER_ETC="/etc/centreon-broker"
BROKER_USER="centreon-broker"
GORGONE_VARLIB="/var/lib/centreon-gorgone"
GORGONE_CONFIG="/etc/centreon-gorgone"
GORGONE_USER="centreon-gorgone"
GORGONE_GROUP="centreon-gorgone"
SUDO_FILE="/etc/sudoers.d/centreon"
SNMP_ETC="/etc/snmp"
PEAR_PATH="/usr/share/pear"
Expand Down

0 comments on commit 4bf1a0e

Please sign in to comment.