check_oracle_health: update to 1.9.3.5
[omd.git] / packages / thruk / THRUK.hook
blobaf9cf26a4ff7e2bf139910d739551968568f827c
1 #!/bin/bash
3 case "$1" in
4 refresh)
5 cd $OMD_ROOT
6 if [ -e etc/cron.d/thruk.auto ]; then
7 newversion=$(basename $(readlink version))
8 sed -i etc/cron.d/thruk.auto -e "s|/omd/versions/[0-9\.]*/|/omd/versions/$newversion/|g" || echo "Updating Thruk Jobs Failed"
9 ./bin/thruk -a installcron > /dev/null
12 esac