[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
David GUENAULT
dguenault at monitoring-fr.org
Tue Feb 28 22:22:35 UTC 2012
The following commit has been merged in the debian/master branch:
commit e63e81fe04d7ac08dcd0049fe4d2626183640206
Author: David GUENAULT <dguenault at monitoring-fr.org>
Date: Sat Feb 25 10:13:12 2012 +0100
FIX install for check_mongodb when prerequistes are empy
diff --git a/install b/install
index 3709910..042be32 100755
--- a/install
+++ b/install
@@ -1269,11 +1269,17 @@ function install_check_mongodb(){
if [ "$CODE" == "REDHAT" ]
then
- cecho " > Installing prerequisites" green
- yum install -yq $CHECKMONGOYUMPKG >> $TMP/shinken.install.log 2>&1
+ if [ ! -z "$CHECKMONGOYUMPKG" ]
+ then
+ cecho " > Installing prerequisites" green
+ yum install -yq $CHECKMONGOYUMPKG >> $TMP/shinken.install.log 2>&1
+ fi
else
- cecho " > Installing prerequisites" green
- apt-get -y install $CHECKMONGOAPTPKG >> $TMP/shinken.install.log 2>&1
+ if [ ! -z "$CHECKMONGOAPTPKG" ]
+ then
+ cecho " > Installing prerequisites" green
+ apt-get -y install $CHECKMONGOAPTPKG >> $TMP/shinken.install.log 2>&1
+ fi
fi
if [ $? -ne 0 ]
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list