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
This commit is contained in:
David Disseldorp 2017-08-08 12:42:26 +00:00 committed by Git OBS Bridge
parent 9bb5fae037
commit 02fe0939f2

View File

@ -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