Module: check_mk
Branch: master
Commit: 64ff4e1c629f636593663208408c26e322c4f519
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=64ff4e1c629f63…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Dec 9 14:59:56 2010 +0100
setup.sh: fix missing Nagios URLs in check_mk_templates.cfg
---
scripts/setup.sh | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/scripts/setup.sh b/scripts/setup.sh
index a6097ff..88eeb73 100755
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -666,10 +666,9 @@ do
chmod 755 $DESTDIR$bindir/check_mk &&
sed -i "s#@BINDIR@#$bindir#g"
$DESTDIR$docdir/check_mk_templates.cfg &&
sed -i "s#@VARDIR@#$vardir#g"
$DESTDIR$docdir/check_mk_templates.cfg &&
- sed -i "s#@CGIURL@#$cgiurl#g"
$DESTDIR$docdir/check_mk_templates.cfg &&
sed -i "s#@CHECK_ICMP@#$check_icmp_path#g"
$DESTDIR$docdir/check_mk_templates.cfg &&
- sed -i "s#@NAGIOSURL@#$nagiosurl#g"
$DESTDIR$docdir/check_mk_templates.cfg &&
- sed -i "s#@PNPURL@#$pnp_url#g"
$DESTDIR$docdir/check_mk_templates.cfg &&
+ sed -i "s#@CGIURL@#${url_prefix}nagios/cgi-bin/#g"
$DESTDIR$docdir/check_mk_templates.cfg &&
+ sed -i "s#@PNPURL@#${url_prefix}pnp4nagios/#g"
$DESTDIR$docdir/check_mk_templates.cfg &&
mkdir -p "$DESTDIR$nagconfdir"
if [ ! -e $DESTDIR$nagconfdir/check_mk_templates.cfg ] ; then
ln -s $docdir/check_mk_templates.cfg $DESTDIR$nagconfdir 2>/dev/null