[omd-commits] OMD Git: omd: shinken: switch back to sqlite when mongodb is disabled

git version control git at mathias-kettner.de
Thu May 24 23:43:33 CEST 2012


Module:   omd
Branch:   master
Commit:   2ee0807a03f24bfd50c6613f463b5ca34e75a3af
URL:      http://omdistro.org/projects/omd/repository/revisions/2ee0807a03f24bfd50c6613f463b5ca34e75a3af

Author:   Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Thu May 24 23:43:06 2012 +0200
Commiter: Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Thu May 24 23:43:06 2012 +0200

shinken: switch back to sqlite when mongodb is disabled

---

 packages/shinken/skel/etc/init.d/shinken |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/packages/shinken/skel/etc/init.d/shinken b/packages/shinken/skel/etc/init.d/shinken
index fc183a8..57f2fc1 100644
--- a/packages/shinken/skel/etc/init.d/shinken
+++ b/packages/shinken/skel/etc/init.d/shinken
@@ -169,6 +169,8 @@ EOTXT
     #fi
     if [ "$MONGODB" = "on" ]; then
       sed -ri 's/^([[:space:]]*modules[[:space:]]*)(.+)/\1mongologs/' $TARGET_ETC/shinken-specific.d/module_livestatus.cfg
+    else
+      sed -ri 's/^([[:space:]]*modules[[:space:]]*)(.+)/\1sqlitelogs/' $TARGET_ETC/shinken-specific.d/module_livestatus.cfg
     fi
 
     #



More information about the omd-commits mailing list