X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=mailman-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;fp=debian%2Fpostinst;h=f25b12c1e164105c2473ded6ad8feb2a5db99cde;hp=bce2f3703278b86253a10b5e2de154880ba8bc94;hb=061eb7029db45cc2b032adbd80418542476693ce;hpb=2ccd97494fc1251cba2dbcfac3720071b9e2a1f9 diff --git a/debian/postinst b/debian/postinst index bce2f37..f25b12c 100755 --- a/debian/postinst +++ b/debian/postinst @@ -23,6 +23,7 @@ if [ ! -L /etc/apache2/conf-available/mailman-cn.conf -a ! -f /etc/apache2/conf- fi a2enconf mailman-cn +a2enmod cgi if [ -L /etc/apache2/conf.d/mailman-cn.conf ]; then rm -f /etc/apache2/conf.d/mailman-cn.conf @@ -173,15 +174,13 @@ db_go || true db_stop || true # restart mailman -if [ "$restart" = "yes" -a -x /etc/init.d/mailman -a -x /usr/sbin/invoke-rc.d ]; then - invoke-rc.d mailman stop - invoke-rc.d mailman start +if [ "$restart" = "yes" ]; then + service mailman stop + service mailman start fi # reload apache2 -if [ -x /usr/sbin/invoke-rc.d -a -x /etc/init.d/apache2 ]; then - invoke-rc.d apache2 reload -fi +service apache2 reload # promjena passworda echo