diff --git a/samba.changes b/samba.changes index 28630eb..8316e21 100644 --- a/samba.changes +++ b/samba.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 8 12:58:56 UTC 2017 - dmulder@suse.com + +- Fix duplicate CTDB_LOGGING params when downgraded and upgraded again; + (bsc#1048339). + ------------------------------------------------------------------- Mon Jul 24 13:34:55 UTC 2017 - ddiss@suse.com diff --git a/samba.spec b/samba.spec index 11cd528..f1ef370 100644 --- a/samba.spec +++ b/samba.spec @@ -1628,7 +1628,8 @@ fi %service_add_pre ctdb.service %endif if [ -e %{_sysconfdir}/sysconfig/ctdb ] ; then - sed -i s/CTDB_LOGFILE=/CTDB_LOGGING=file:/g %{_sysconfdir}/sysconfig/ctdb + grep CTDB_LOGGING %{_sysconfdir}/sysconfig/ctdb >/dev/null 2>&1 || + sed -i s/CTDB_LOGFILE=/CTDB_LOGGING=file:/g %{_sysconfdir}/sysconfig/ctdb fi %preun -n ctdb