Module: check_mk
Branch: master
Commit: a766ec7104c9c5e920b1bb3134d26cc1b14b020b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a766ec7104c9c5…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 1 09:24:24 2019 +0100
Fix cleanup of dangling symlinks (fix raw edition update from 1.5)
Change-Id: I980eb2bf419e1cc7d622d3fc5be789af2af68676
---
omd/packages/omd/hooks/CORE | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/omd/packages/omd/hooks/CORE b/omd/packages/omd/hooks/CORE
index 1942129..9a94b0f 100755
--- a/omd/packages/omd/hooks/CORE
+++ b/omd/packages/omd/hooks/CORE
@@ -32,15 +32,15 @@ case "$1" in
;;
set)
# cleanup the former selection
- if [ -e $OMD_ROOT/etc/apache/conf.d/shinken.conf ] ; then
+ if [ -h $OMD_ROOT/etc/apache/conf.d/shinken.conf ] ; then
rm -f $OMD_ROOT/etc/apache/conf.d/shinken.conf
fi
- if [ -e $OMD_ROOT/etc/apache/conf.d/nagios.conf ] ; then
+ if [ -h $OMD_ROOT/etc/apache/conf.d/nagios.conf ] ; then
rm -f $OMD_ROOT/etc/apache/conf.d/nagios.conf
fi
# NOTE: Although we don't ship Icinga anymore, we leave this to make
# sure there is no dangling symlink and keep Apache happy.
- if [ -e $OMD_ROOT/etc/apache/conf.d/icinga.conf ] ; then
+ if [ -h $OMD_ROOT/etc/apache/conf.d/icinga.conf ] ; then
rm -f $OMD_ROOT/etc/apache/conf.d/icinga.conf
fi
if [ "$2" != "cmc" ] ; then