X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=amavisd-cn.git;a=blobdiff_plain;f=src%2Fpostfix.sh;h=7aa396136d6e75544bd6d7d98bbb328e28463144;hp=1d74552dd4a268f49e71a73b1ab00c150e443050;hb=1a6944c221294202ee0b5e89c2d9f4dc6fdbcc5e;hpb=0f9aadf4ee95ffa43d2b554a7550aa6777d99713 diff --git a/src/postfix.sh b/src/postfix.sh index 1d74552..7aa3961 100755 --- a/src/postfix.sh +++ b/src/postfix.sh @@ -5,10 +5,14 @@ update_postfix() { dpkg --compare-versions "$2" lt $MASTTMPLVERSION ); then noisy_backup /etc/postfix/master.cf cp-update $PKG /etc/postfix/master.cf < $MASTTMPL + restart_mta=1 fi # main.cf - postconf -e content_filter="smtp-amavis:[127.0.0.1]:10024" - - restart_mta=1 + if [ ! -f /etc/postfix/main.cf ] || \ + ! grep -q "smtp-amavis:[127.0.0.1]:10024" \ + /etc/postfix/main.cf; then + postconf -e content_filter="smtp-amavis:[127.0.0.1]:10024" + restart_mta=1 + fi }