[omd-commits] OMD Git: omd: thruk: make hook run in site root

git version control git at mathias-kettner.de
Thu Jun 28 12:40:42 CEST 2012


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

Author:   Sven Nierlein <sven at consol.de>
Date:     Thu Jun 28 12:40:16 2012 +0200
Commiter: Sven Nierlein <sven at consol.de>
Date:     Thu Jun 28 12:40:16 2012 +0200

thruk: make hook run in site root

---

 packages/thruk/THRUK.hook |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/packages/thruk/THRUK.hook b/packages/thruk/THRUK.hook
index e742759..c5dd991 100755
--- a/packages/thruk/THRUK.hook
+++ b/packages/thruk/THRUK.hook
@@ -2,6 +2,7 @@
 
 case "$1" in
     refresh)
+        cd $OMD_ROOT
         if [ -e etc/cron.d/thruk.auto ]; then
             newversion=$(basename $(readlink version))
             sed -i etc/cron.d/thruk.auto -e "s|/omd/versions/[0-9\.]*/|/omd/versions/$newversion/|g" || echo "Updating Thruk Jobs Failed"



More information about the omd-commits mailing list