From e120cc562359bc442a411340e09dc448f8e509b1 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Sun, 21 Feb 2016 13:18:26 +0100 Subject: [PATCH] jos izmjena za apache 2.4 --- debian/postinst | 2 +- debian/postrm | 12 +++++++----- debian/prerm | 6 +----- 3 files changed, 9 insertions(+), 11 deletions(-) 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# -- 1.7.10.4