X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=debian%2Fpazpar2-apache2.postinst;h=6c4f18b6f68bd8cd2c9d3a2251989673933cb81c;hb=41a35ca4946b829fd190decf27de1abe1372866e;hp=62d861e856ebc8ce25f6048ec29eb33c20d46c4f;hpb=6a2f9ec8c15918dbf86c96da0b4b9e34b41edea9;p=pazpar2-moved-to-github.git diff --git a/debian/pazpar2-apache2.postinst b/debian/pazpar2-apache2.postinst index 62d861e..6c4f18b 100644 --- a/debian/pazpar2-apache2.postinst +++ b/debian/pazpar2-apache2.postinst @@ -18,6 +18,14 @@ if [ -e /etc/apache2/apache2.conf ]; then if [ ! -f /etc/apache2/mods-enabled/proxy_http.load ]; then a2enmod proxy_http || true fi + + if [ -d /etc/apache2/conf.d ]; then + ln -sf /etc/pazpar2/ap2pazpar2.cfg /etc/apache2/conf.d/pazpar2 + + if [ -f /etc/apache2/conf.d/ap2pazpar2.cfg ]; then + rm /etc/apache2/conf.d/ap2pazpar2.cfg + fi + fi reload_apache fi