Restart Apache from the module postinst
authorFerenc Wagner <wferi@niif.hu>
Mon, 22 Nov 2010 18:49:38 +0000 (19:49 +0100)
committerRuss Allbery <rra@debian.org>
Mon, 29 Nov 2010 23:51:58 +0000 (15:51 -0800)
This avoids cryptic communication errors with the upgraded shibd.
(Closes: #602328)

debian/changelog
debian/libapache2-mod-shib2.postinst

index 0e495ea..2378039 100644 (file)
@@ -1,4 +1,11 @@
-shibboleth-sp2 (2.3.1+dfsg-3) UNRELEASED; urgency=low
+shibboleth-sp2 (2.3.1+dfsg-4) unstable; urgency=low
+
+  * Restart Apache from the postinst script if the shib2 module is enabled
+    to avoid communication errors with the upgraded shibd.  (Closes: #602328)
+
+ -- Ferenc Wagner <wferi@niif.hu>  Mon, 22 Nov 2010 19:30:50 +0100
+
+shibboleth-sp2 (2.3.1+dfsg-3) unstable; urgency=low
 
   [ Ferenc Wagner ]
   * Fix watch file.  The 2.4 prerelease broke it.
index 9cd4ce7..7b9e45f 100755 (executable)
@@ -30,6 +30,12 @@ if [ "$1" = "configure" ] ; then
         adduser --system --group --quiet --home /var/log/shibboleth \
             --no-create-home --disabled-login --force-badname _shibd
     fi
+
+    # 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
+        invoke-rc.d apache2 restart
+    fi
 fi
 
 #DEBHELPER#