Add changelog entry for additional init script fixes
[shibboleth/sp.git] / debian / libapache2-mod-shib2.postinst
1 #!/bin/sh
2
3 set -e
4
5 # Prior to 2.0.dfsg1-4, we named our Apache configuration files shib instead
6 # of shib2.  We therefore need to unlink the old configuration files, and if
7 # they were linked in, we should link in the new ones.
8 if [ "$1" = "configure" ] ; then
9     if dpkg --compare-versions "$2" lt-nl 2.0.dfsg1-4 ; then
10         if [ -f /etc/apache2/mods-enabled/shib.load ] ; then
11             a2enmod shib2
12         fi
13         a2dismod shib || true
14     fi
15 fi
16
17 #DEBHELPER#
18
19 exit 0