[omd-commits] OMD Git: omd: thruk: update cronjobs on omd update

git version control git at mathias-kettner.de
Tue Apr 2 13:23:58 CEST 2013


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

Author:   Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Tue Apr  2 13:23:18 2013 +0200
Commiter: Sven Nierlein <sven at consol.de>
Date:     Tue Apr  2 13:23:18 2013 +0200

thruk: update cronjobs  on omd update

---

 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 c5dd991..af9cf26 100755
--- a/packages/thruk/THRUK.hook
+++ b/packages/thruk/THRUK.hook
@@ -6,6 +6,7 @@ case "$1" in
         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"
+            ./bin/thruk -a installcron > /dev/null
         fi
     ;;
 esac



More information about the omd-commits mailing list