Test with -f to ignore a possibly dangling symlink
authorFerenc Wagner <wferi@niif.hu>
Mon, 22 Nov 2010 21:17:25 +0000 (22:17 +0100)
committerRuss Allbery <rra@debian.org>
Mon, 29 Nov 2010 23:52:04 +0000 (15:52 -0800)
debian/libapache2-mod-shib2.postinst

index 7b9e45f..fcc1b5c 100755 (executable)
@@ -33,7 +33,7 @@ if [ "$1" = "configure" ] ; then
 
     # The new shibd (which is about to be started) requires the corresponding
     # Apache module, otherwise strange, hard to debug error messages result.
-    if [ -L /etc/apache2/mods-enabled/shib2.load ] ; then
+    if [ -f /etc/apache2/mods-enabled/shib2.load ] ; then
         invoke-rc.d apache2 restart
     fi
 fi