projects
/
mailman-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prva verzija za buster.
[mailman-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
bce2f37
..
298f3e9
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-1,12
+1,13
@@
-#!/bin/sh -e
+#!/bin/sh
set -e
[ "$1" = "configure" ] || exit 0
[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
set -e
[ "$1" = "configure" ] || exit 0
[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
-# Load CARNet tools
+# Load CARNET tools
. /usr/share/carnet-tools/functions.sh
. /usr/share/carnet-tools/functions.sh
+
# Load Debconf
. /usr/share/debconf/confmodule
# Load Debconf
. /usr/share/debconf/confmodule
@@
-22,7
+23,9
@@
if [ ! -L /etc/apache2/conf-available/mailman-cn.conf -a ! -f /etc/apache2/conf-
ln -sf /etc/mailman/apache.conf /etc/apache2/conf-available/mailman-cn.conf
fi
ln -sf /etc/mailman/apache.conf /etc/apache2/conf-available/mailman-cn.conf
fi
-a2enconf mailman-cn
+a2enconf mailman-cn --quiet
+a2enmod cgid --quiet
+a2enmod cgi --quiet
if [ -L /etc/apache2/conf.d/mailman-cn.conf ]; then
rm -f /etc/apache2/conf.d/mailman-cn.conf
if [ -L /etc/apache2/conf.d/mailman-cn.conf ]; then
rm -f /etc/apache2/conf.d/mailman-cn.conf
@@
-173,15
+176,13
@@
db_go || true
db_stop || true
# restart mailman
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
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
# promjena passworda
echo