From 2ccd97494fc1251cba2dbcfac3720071b9e2a1f9 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Sun, 21 Feb 2016 13:11:16 +0100 Subject: [PATCH] izmjene za apache 2.4 --- debian/changelog | 1 + debian/postinst | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 43d79df..cfc662a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ mailman-cn (2:2.1.18~cn0) stable; urgency=low * Prva verzija za jessie + * Prilagodbe za Apache 2.4 -- Ivan Rako Sun, 21 Feb 2016 12:40:56 +0100 diff --git a/debian/postinst b/debian/postinst index 3cec18d..bce2f37 100755 --- a/debian/postinst +++ b/debian/postinst @@ -18,8 +18,14 @@ if [ ! -L /usr/lib/mailman/Mailman/mm_cfg.py -a -f /usr/lib/mailman/Mailman/mm_c ln -sf /etc/mailman/mm_cfg.py /usr/lib/mailman/Mailman/mm_cfg.py fi -if [ ! -L /etc/apache2/conf.d/mailman-cn.conf -a ! -f /etc/apache2/conf.d/mailman-cn.conf ]; then - ln -sf /etc/mailman/apache.conf /etc/apache2/conf.d/mailman-cn.conf +if [ ! -L /etc/apache2/conf-available/mailman-cn.conf -a ! -f /etc/apache2/conf-available/mailman-cn.conf ]; then + ln -sf /etc/mailman/apache.conf /etc/apache2/conf-available/mailman-cn.conf +fi + +a2enconf mailman-cn + +if [ -L /etc/apache2/conf.d/mailman-cn.conf ]; then + rm -f /etc/apache2/conf.d/mailman-cn.conf fi hostname="`hostname --fqdn`" -- 1.7.10.4