]> git.decadent.org.uk Git - memories.git/blob - debian/memories.postinst
Add new dependencies
[memories.git] / debian / memories.postinst
1 #!/bin/sh -e
2
3 #DEBHELPER#
4
5 if [ "x$1" = xconfigure ]; then
6
7     # If mod_perl and mod_apreq are installed, ensure our configuration
8     # fragment is installed and make Apache (re)load the configuration
9     # and application.
10     if [ -e /etc/apache2/mods-enabled/perl.load -a \
11          -e /etc/apache2/mods-enabled/apreq.load ]; then
12         if [ \! -e /etc/apache2/conf.d/memories ]; then
13             ln -s ../../memories/apache.conf /etc/apache2/conf.d/memories
14         fi
15         invoke-rc.d apache2 force-reload
16     fi
17
18     # Disable integration with now-unsupported Apache 1.x.
19     for server in apache apache-perl apache-ssl; do
20         if [ -L /etc/$server/conf.d/memories ]; then
21             rm /etc/$server/conf.d/memories
22             if [ -f /etc/init.d/$server ]; then
23                  invoke-rc.d $server force-reload
24             fi
25         fi
26     done
27
28 fi