From: Marcin Krol Date: Fri, 25 Jan 2019 14:39:37 +0000 (+0100) Subject: - trigger cleanup and cosmetics X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=65b664b7eb18c725498e780018dfffda991f8553;p=packages%2Fpostfix.git - trigger cleanup and cosmetics --- diff --git a/postfix.spec b/postfix.spec index 4dbbc84..ee79f17 100644 --- a/postfix.spec +++ b/postfix.spec @@ -379,10 +379,9 @@ fi if [ $1 -le 1 ]; then exit 0 fi -set -x 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 || : + f=${f##*/} + [ -f "/etc/mail/$f" ] && mv "/etc/mail/$f" "/etc/postfix/$f" 2>/dev/null || : done find /etc/postfix -type f 2>/dev/null | xargs sed -i -e 's|/etc/mail|/etc/postfix|g' 2>/dev/null for f in /etc/mail/*.db; do @@ -398,7 +397,6 @@ for f in /etc/mail/*.db; do fi done [ -n "$(find /etc/mail -type d -empty 2>/dev/null)" ] && rmdir /etc/mail 2>/dev/null || : -set +x %triggerpostun -- %{name} < 2:3.3.2-2 echo