[Pkg-nagios-changes] [pkg-icinga2] 01/01: Links are tested with -L

Alexander Wirt formorer at debian.org
Sun Nov 23 19:26:26 UTC 2014


This is an automated email from the git hooks/post-receive script.

formorer pushed a commit to branch master
in repository pkg-icinga2.

commit e73d057064c487542dce2ddc75a288de6cacb578
Author: Alexander Wirt <formorer at debian.org>
Date:   Sun Nov 23 20:17:28 2014 +0100

    Links are tested with -L
---
 debian/icinga2-classicui.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/icinga2-classicui.postinst b/debian/icinga2-classicui.postinst
index de7c2b0..d89865d 100644
--- a/debian/icinga2-classicui.postinst
+++ b/debian/icinga2-classicui.postinst
@@ -78,7 +78,7 @@ case "$1" in
         elif [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
             a2enmod cgi
             # create symlink if not existing
-            [ -f /etc/apache2/conf.d/icinga2-classicui.conf ] || ln -vs $en/apache2.conf /etc/apache2/conf.d/icinga2-classicui.conf
+            [ -L /etc/apache2/conf.d/icinga2-classicui.conf ] || ln -vs $en/apache2.conf /etc/apache2/conf.d/icinga2-classicui.conf
 
             # reload webserver
             [ -x $(which invoke-rc.d) ] && invoke-rc.d apache2 reload

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-icinga2.git



More information about the Pkg-nagios-changes mailing list