[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

David GUENAULT dguenault at monitoring-fr.org
Tue Feb 28 22:22:40 UTC 2012


The following commit has been merged in the debian/master branch:
commit 3923015a45825a8df2a90bc857045cc731f3c390
Author: David GUENAULT <dguenault at monitoring-fr.org>
Date:   Sun Feb 26 09:56:53 2012 +0100

    FIX color output in message

diff --git a/install b/install
index 6880d18..14d38b9 100755
--- a/install
+++ b/install
@@ -930,12 +930,20 @@ function install_mongodb(){
             if [ ! -f "/etc/yum.repos.d/10gen.repo" ]
             then
                 cp install.d/10gen.repo.in /etc/yum.repos.d/10gen.repo
-                sed -i "s/__ARCH__/"$ARCH"/g" /etc/yum.repos.d/10gen.repo
+                case $ARCH in
+                    i386)
+                        MARCH=i686
+                        ;;
+                    *)
+                        MARCH=$ARCH
+                        ;;
+                esac
+                sed -i "s/__ARCH__/"$MARCH"/g" /etc/yum.repos.d/10gen.repo
                 yum clean all >> $TMP/shinken.install.log 2>&1
                 yum -y install mongo-10gen mongo-10gen-server >> $TMP/shinken.install.log 2>&1
                 chkconfig --add mongod >> $TMP/shinken.install.log 2>&1
                 chkconfig mongod on >> $TMP/shinken.install.log 2>&1
-                cecho " > Start mongodb server"
+                cecho " > Start mongodb server" green
                 /etc/init.d/mongod start >> $TMP/shinken.install.log 2>&1
             else
                 cecho "Allready installed" red

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list