4 if [ "$1" != "configure" ]; then
10 if apache2ctl configtest 2>/dev/null; then
11 invoke-rc.d apache2 force-reload || true
13 echo "Your apache2 configuration is broken, so we're not restarting it for you."
17 if [ -e /etc/apache2/apache2.conf ]; then
18 if [ ! -f /etc/apache2/mods-enabled/proxy_http.load ]; then
19 a2enmod proxy_http || true
22 if [ -d /etc/apache2/conf.d ]; then
23 ln -sf /etc/pazpar2/ap2pazpar2.cfg /etc/apache2/conf.d/pazpar2
25 if [ -f /etc/apache2/conf.d/ap2pazpar2.cfg ]; then
26 rm /etc/apache2/conf.d/ap2pazpar2.cfg