diff --git a/postfix.changes b/postfix.changes index 7488339..00ec54a 100644 --- a/postfix.changes +++ b/postfix.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 14 16:43:02 CEST 2011 - mhrusecky@suse.cz + +- only fix files that exists in %post + ------------------------------------------------------------------- Sun Oct 9 04:30:54 UTC 2011 - crrodriguez@opensuse.org diff --git a/postfix.spec b/postfix.spec index c038d5f..eac1158 100644 --- a/postfix.spec +++ b/postfix.spec @@ -391,7 +391,7 @@ else fi fi # before fillup we need to fix something -%{__sed} -i \ +[ \! -f %{_sysconfdir}/sysconfig/%{name} ] || %{__sed} -i \ -e "s/POSTFIX_SMTPD_SENDERNT_RESTRICTIONS/POSTFIX_SMTPD_SENDER_RESTRICTIONS/" \ %{_sysconfdir}/sysconfig/%{name} %{fillup_and_insserv -y postfix}