]> TLD Linux GIT Repositories - packages/postfix.git/commitdiff
- test for /etc/postfix in trigger, just in case
authorMarcin Krol <hawk@tld-linux.org>
Tue, 29 Jan 2019 11:38:09 +0000 (12:38 +0100)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 29 Jan 2019 11:38:09 +0000 (12:38 +0100)
postfix.spec

index ee79f17ba2d58127af706eeff963c25d4df13e4c..26914576e17288e23651ec650f6bd22f24d247f8 100644 (file)
@@ -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 || :