Module: check_mk
Branch: master
Commit: 03d2f6ea129bef0efbd0439b75eaecc43c9e83fb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=03d2f6ea129bef…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 4 13:46:15 2011 +0100
setup: fix creation of symlink cmk
---
ChangeLog | 1 +
scripts/setup.sh | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 97f1b7c..f7169b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
1.1.9i4:
Core, Setup, etc.:
* added missing 'register 0' to host template
+ * setup: fix creation of symlink cmk if already existing
1.1.9i3:
INCOMPATIBLE CHANGES:
diff --git a/scripts/setup.sh b/scripts/setup.sh
index a356062..0aa1b79 100755
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -664,7 +664,7 @@ do
rm -f $DESTDIR$bindir/check_mk &&
echo -e "#!/bin/sh\nexec python $modulesdir/check_mk.py
"'"$@"' > $DESTDIR$bindir/check_mk &&
chmod 755 $DESTDIR$bindir/check_mk &&
- ln -s check_mk $DESTDIR$bindir/cmk &&
+ ln -sns check_mk $DESTDIR$bindir/cmk &&
echo -e "#!/bin/sh\nexec python $modulesdir/check_mk.py -P
"'"$@"' > $DESTDIR$bindir/mkp &&
chmod 755 $DESTDIR$bindir/mkp &&
sed -i "s#@BINDIR@#$bindir#g"
$DESTDIR$docdir/check_mk_templates.cfg &&