From: Ivan Rako Date: Sun, 21 Feb 2016 12:18:26 +0000 (+0100) Subject: jos izmjena za apache 2.4 X-Git-Tag: debian/2%2.1.18_cn0~2 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=mailman-cn.git;a=commitdiff_plain;h=e120cc562359bc442a411340e09dc448f8e509b1 jos izmjena za apache 2.4 --- diff --git a/debian/postinst b/debian/postinst index f25b12c..a89c76d 100755 --- a/debian/postinst +++ b/debian/postinst @@ -23,7 +23,7 @@ if [ ! -L /etc/apache2/conf-available/mailman-cn.conf -a ! -f /etc/apache2/conf- fi a2enconf mailman-cn -a2enmod cgi +a2enmod cgid if [ -L /etc/apache2/conf.d/mailman-cn.conf ]; then rm -f /etc/apache2/conf.d/mailman-cn.conf diff --git a/debian/postrm b/debian/postrm index 8973879..584e168 100755 --- a/debian/postrm +++ b/debian/postrm @@ -8,11 +8,13 @@ if [ /etc/apache2/conf.d/mailman-cn.conf ]; then rm -f /etc/apache2/conf.d/mailman-cn.conf fi -# reload apache2 -if [ -x /usr/sbin/invoke-rc.d ]; then - [ -x /etc/init.d/apache2 ] && invoke-rc.d apache2 reload -else - [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 reload +a2disconf mailman-cn + +if [ /etc/apache2/conf-available/mailman-cn.conf ]; then + rm -f /etc/apache2/conf-available/mailman-cn.conf fi +# reload apache2 +reload apache2 reload + #DEBHELPER# diff --git a/debian/prerm b/debian/prerm index afba8b7..d10d643 100755 --- a/debian/prerm +++ b/debian/prerm @@ -5,10 +5,6 @@ set -e [ "$1" = "remove" ] || exit 0 # reload apache2 -if [ -x /usr/sbin/invoke-rc.d ]; then - [ -x /etc/init.d/apache2 ] && invoke-rc.d apache2 reload -else - [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 reload -fi +service apache2 reload #DEBHELPER#