diff --git a/postfix.changes b/postfix.changes index 68c0bf1..78ffcc6 100644 --- a/postfix.changes +++ b/postfix.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 6 11:04:12 UTC 2011 - varkoly@suse.com + +- Fix the last change in %post + ------------------------------------------------------------------- Fri Dec 2 06:44:28 UTC 2011 - varkoly@suse.com diff --git a/postfix.spec b/postfix.spec index dd51533..4ff5f69 100644 --- a/postfix.spec +++ b/postfix.spec @@ -402,8 +402,9 @@ else ln -s /usr/sbin/SuSEconfig.postfix /sbin/conf.d/SuSEconfig.postfix fi fi -for i in `ls /etc/postfix/*db`; +for i in /etc/postfix/*db; do + test -e "$i" || continue; b=$( basename $i .db ); postmap /etc/postfix/$b; done