- if [ -f /etc/postfix/master.cf ] && \
- \( ! grep -q smtp-amavis /etc/postfix/master.cf || \
- dpkg --compare-versions "$2" lt $MASTTMPLVERSION \); then
- noisy_backup /etc/postfix/master.cf
- cp-update $PKG /etc/postfix/master.cf < $MASTTMPL
+ if [ -f /etc/postfix/master.cf ]; then
+ if ( ! grep -q smtp-amavis /etc/postfix/master.cf || \
+ 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
+ else
+ echo "CN: Missing Postfix master.cf, please configure Postfix and restart installation."
+ exit 1