From: Ferenc Wagner Date: Mon, 22 Nov 2010 21:17:25 +0000 (+0100) Subject: Test with -f to ignore a possibly dangling symlink X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=646e5008b343c989a7570f4cabebe799341f3e84 Test with -f to ignore a possibly dangling symlink --- diff --git a/debian/libapache2-mod-shib2.postinst b/debian/libapache2-mod-shib2.postinst index 7b9e45f..fcc1b5c 100755 --- a/debian/libapache2-mod-shib2.postinst +++ b/debian/libapache2-mod-shib2.postinst @@ -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