5 if [ "x$1" = xconfigure ]; then
7 # Install our configuration fragment and make Apache load it
8 # (and unload any code from a previous version of Memories).
9 # Check whether mod_perl is enabled first.
10 for server in apache apache-perl apache-ssl; do
11 if [ "$(apache-modconf $server query mod_perl 2>/dev/null)" \
13 \! -e /etc/$server/conf.d/memories ]; then
14 ln -s ../../memories/apache.conf /etc/$server/conf.d/memories
15 invoke-rc.d $server force-reload
18 # Module configuration is different in the apache2 package.
19 if [ -e /etc/apache2/mods-enabled/perl.load -a \
20 \! -e /etc/apache2/conf.d/memories ]; then
21 ln -s ../../memories/apache.conf /etc/apache2/conf.d/memories
22 invoke-rc.d apache2 force-reload