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