2 # last update: jelly+paketi@srce.hr Mon Oct 30 13:56:00 CET 2006
6 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
8 PATH=/bin:/usr/bin:/sbin:/usr/sbin
11 . /usr/share/amavisd-cn/version.sh
12 . /usr/share/carnet-tools/functions.sh
13 . /usr/share/amavisd-cn/variables.sh
14 . /usr/share/amavisd-cn/functions.sh
16 # find out which MTA, assume postfix
19 TMPLVERSION=$POSTTMPLVERSION
20 if dpkg -l postfix | grep -q '^.i'; then
21 . /usr/share/amavisd-cn/postfix.sh
24 echo "CN: Don't invoke this script unless you have $mta installed!" >&2
29 if [ "$mta" = postfix ]; then
32 fi # end postfix config
34 # nonexistent or empty config
35 if [ ! -f $ACONF -o ! -s $ACONF ]; then
37 echo "CN: Can't find $ACONF?!" >&2
42 if [ "$restart_daemon" -a -x /etc/init.d/amavis.amavisd-new ]; then
43 /etc/init.d/amavis.amavisd-new restart
45 # always check that the daemons are running
46 if ! wait_for_fds amavis; then
47 /etc/init.d/amavis.amavisd-new start < /dev/null