From 65b664b7eb18c725498e780018dfffda991f8553 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Fri, 25 Jan 2019 15:39:37 +0100 Subject: [PATCH] - trigger cleanup and cosmetics --- postfix.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.46.0