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
19 # Disable currently broken integration with Apache 2
20 if [ -L /etc/apache2/conf.d/memories ]; then
21 rm /etc/apache2/conf.d/memories
22 invoke-rc.d apache2 force-reload