From 02fe0939f2406def023e6d6ed1957aaee7dc946c6b2ce1067175420917a47d02 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Tue, 8 Aug 2017 12:42:26 +0000 Subject: [PATCH] Accepting request 515066 from home:dmulder:branches:network:samba:STABLE Fix duplicate CTDB_LOGGING params when downgraded and upgraded again (bsc#1048339) OBS-URL: https://build.opensuse.org/request/show/515066 OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/samba?expand=0&rev=568 --- samba.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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