5 if [ "x$1" = xconfigure ]; then
7 # If mod_perl and mod_apreq are installed, ensure our configuration
8 # fragment is installed and make Apache (re)load the configuration
10 if [ -e /etc/apache2/mods-enabled/perl.load -a \
11 -e /etc/apache2/mods-enabled/apreq.load -a \
12 -f /usr/share/perl5/Apache2/Upload.pm ]; then
13 if [ \! -e /etc/apache2/conf.d/memories ]; then
14 ln -s ../../memories/apache.conf /etc/apache2/conf.d/memories
16 invoke-rc.d apache2 force-reload
19 # Disable integration with now-unsupported Apache 1.x.
20 for server in apache apache-perl apache-ssl; do
21 if [ -L /etc/$server/conf.d/memories ]; then
22 rm /etc/$server/conf.d/memories
23 if [ -f /etc/init.d/$server ]; then
24 invoke-rc.d $server force-reload