From: Dinko Korunic Date: Mon, 14 Apr 2008 20:48:00 +0000 (+0200) Subject: - pametniji restart Postfixa u slucaju promjena u konfiguraciji X-Git-Tag: v2.6.4-1~13 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=1a6944c221294202ee0b5e89c2d9f4dc6fdbcc5e;p=amavisd-cn.git - pametniji restart Postfixa u slucaju promjena u konfiguraciji Signed-off-by: Dinko Korunic --- 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 }