From: Marcin Krol Date: Tue, 29 Jan 2019 11:38:09 +0000 (+0100) Subject: - test for /etc/postfix in trigger, just in case X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=d4e009e98124d088509e7180669b14b5b4efc01a;p=packages%2Fpostfix.git - test for /etc/postfix in trigger, just in case --- diff --git a/postfix.spec b/postfix.spec index ee79f17..2691457 100644 --- a/postfix.spec +++ b/postfix.spec @@ -379,6 +379,7 @@ fi if [ $1 -le 1 ]; then exit 0 fi +[ -d /etc/postfix ] || mkdir /etc/postfix 2>/dev/null || : for f in /etc/mail/{access,aliases,body_checks,bounce.cf.*,canonical,dynamicmaps.cf,generic,header_checks,main.cf,master.cf,postfix-files,relocated,transport,virtual}; do f=${f##*/} [ -f "/etc/mail/$f" ] && mv "/etc/mail/$f" "/etc/postfix/$f" 2>/dev/null || :