check_logfiles: 3.7.5.1
[omd.git] / packages / thruk / thruk.post-update
blob2f6a1b7860bdf60cc6d09565ac59f91e2d3ca318
1 #!/bin/bash
3 cd $OMD_ROOT
4 if [ -s etc/cron.d/thruk.auto ]; then
5 omd start nonexistant >/dev/null 2>&1 # hack to mount tmp filesystem since there is no omd mount (yet?)
6 newversion=$(basename $(readlink version))
7 sed -i etc/cron.d/thruk.auto -e "s|/omd/versions/[0-9\.]*/|/omd/versions/$newversion/|g" || echo "Updating Thruk Jobs Failed"
8 ./bin/thruk -a installcron > /dev/null
9 fi