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

Commit

Permalink
fix(install): change the bash interpreter for the native sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Kermagoret authored and ganoze committed Oct 4, 2019
1 parent 7dc2329 commit fb5074e
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 108 deletions.
2 changes: 1 addition & 1 deletion cron/centreon-backup-mysql.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

###################################################
# Centreon Octobre 2015
Expand Down
4 changes: 2 additions & 2 deletions doc/en/developer/translatecentreon.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on your server.

Execute the following command::

$ bash make-translation.sh
$ sh make-translation.sh

At the end of execution, two files are available:

Expand Down Expand Up @@ -100,7 +100,7 @@ So translation could be modified with every new release.

To maintain translation up-to-date follow this steps::

$ bash make-translation.sh
$ sh make-translation.sh

At the end of execution, two files up-to-date are available:

Expand Down
2 changes: 1 addition & 1 deletion doc/en/installation/from_sources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Activate the modules: ::
Additional commands are necessary to configure the environment correctly: ::

$ groupadd -g 6000 centreon
$ useradd -u 6000 -g centreon -m -r -d /var/lib/centreon -c "Centreon Admin" -s /bin/bash centreon
$ useradd -u 6000 -g centreon -m -r -d /var/lib/centreon -c "Centreon Admin" -s /bin/sh centreon

To finish, you should install SNMP MIBs. Because of a license problem the MIB files
are not available by default in Debian. To add them, change the /etc/apt/sources.list
Expand Down
4 changes: 2 additions & 2 deletions doc/fr/developper/translatecentreon.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on your server.

Execute the following command::

$ bash make-translation.sh
$ sh make-translation.sh

At the end of execution, two files are available:

Expand Down Expand Up @@ -100,7 +100,7 @@ So translation could be modified with every new release.

To maintain translation up-to-date follow this steps::

$ bash make-translation.sh
$ sh make-translation.sh

At the end of execution, two files up-to-date are available:

Expand Down
2 changes: 1 addition & 1 deletion doc/fr/installation/from_sources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Des commandes additionnelles sont nécessaires pour configurer correctement
l'environnement : ::

$ groupadd -g 6000 centreon
$ useradd -u 6000 -g centreon -m -r -d /var/lib/centreon -c "Centreon Admin" -s /bin/bash centreon
$ useradd -u 6000 -g centreon -m -r -d /var/lib/centreon -c "Centreon Admin" -s /bin/sh centreon

Pour finir, vous devez installer des MIBs SNMP. En raison d'un problème de licence,
les fichiers MIBs ne sont pas disponibles par défaut sous Debian. Pour les ajouter,
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash
#!/bin/sh
#----
## @Synopsis Install Script for Centreon project
## @Copyright Copyright 2008, Guillaume Watteeux
## @License GPL : http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
## Centreon Install Script
## Use
## <pre>
## Usage: bash install.sh [OPTION]
## Usage: sh install.sh [OPTION]
## Options:
## -f Input file with all variables define (use for with template)
## -u Input file with all variables define for update centreon
Expand Down Expand Up @@ -59,7 +59,7 @@ version="18.10.3"
## Usage informations for install.sh
## @Sdtout Usage informations
#----
function usage() {
usage() {
local program=$0
echo -e "$(gettext "Usage: $program -f <file>")"
echo -e " -i\t$(gettext "install centreon")"
Expand Down
Loading

0 comments on commit fb5074e

Please sign in to comment.