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

fix(install): fix source install with quiet mode related to gorgone vars #11694

Merged
merged 2 commits into from
Sep 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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