[cpp-sp] 06/42: Test with -f to ignore a possibly dangling symlink

Scott Cantor cantor.2 at osu.edu
Thu Dec 20 19:44:23 EST 2018


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

scantor pushed a commit to annotated tag debian/2.4.2+dfsg-1
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=646e5008b343c989a7570f4cabebe799341f3e84

commit 646e5008b343c989a7570f4cabebe799341f3e84
Author: Ferenc Wagner <wferi at niif.hu>
AuthorDate: Mon Nov 22 22:17:25 2010 +0100

    Test with -f to ignore a possibly dangling symlink
---
 debian/libapache2-mod-shib2.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list