[cpp-sp] 05/42: Restart Apache from the module postinst

Scott Cantor cantor.2 at osu.edu
Thu Dec 20 19:44:22 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=4496ca3fc42aa7e5fb47c7f4181698dbf0e2c7e3

commit 4496ca3fc42aa7e5fb47c7f4181698dbf0e2c7e3
Author: Ferenc Wagner <wferi at niif.hu>
AuthorDate: Mon Nov 22 19:49:38 2010 +0100

    Restart Apache from the module postinst
    
    This avoids cryptic communication errors with the upgraded shibd.
    (Closes: #602328)
---
 debian/changelog                     | 9 ++++++++-
 debian/libapache2-mod-shib2.postinst | 6 ++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 0e495ea..2378039 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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 at 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.
diff --git a/debian/libapache2-mod-shib2.postinst b/debian/libapache2-mod-shib2.postinst
index 9cd4ce7..7b9e45f 100755
--- a/debian/libapache2-mod-shib2.postinst
+++ b/debian/libapache2-mod-shib2.postinst
@@ -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#

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


More information about the commits mailing list