diff --git a/sssd.changes b/sssd.changes index b80b681..a851ea6 100644 --- a/sssd.changes +++ b/sssd.changes @@ -25,6 +25,10 @@ Sun Aug 10 12:20:50 UTC 2014 - jengelh@inai.de over the system bus. - Remove 0001-BUILD-Link-libsss_ldap_common.so-to-libsss_idmap.so.patch (merged upstream) +- Provide "rcsssd" in systemd environments +- Ensure sssd is always startable by removing /var/lib/sss/db/*.ldb + on package installation so as to avoid potentially cache + format incompatibility which would cause sssd to exit ------------------------------------------------------------------- Thu Jun 12 14:18:30 UTC 2014 - ckornacker@suse.com diff --git a/sssd.spec b/sssd.spec index 9f8f5de..11326b7 100644 --- a/sssd.spec +++ b/sssd.spec @@ -367,6 +367,7 @@ install -d "$b/%_unitdir"; #install src/sysv/systemd/sssd.service "$b/%_unitdir/sssd.service"; install -m644 %{S:4} "$b/%_unitdir/sssd.service"; rm -Rf "$b/%_initddir" +ln -s service "$b/%_sbindir/rcsssd" %else install src/sysv/SUSE/sssd "$b/%_sysconfdir/init.d/sssd"; ln -sf ../../etc/init.d/sssd "$b/usr/sbin/rcsssd" @@ -392,11 +393,12 @@ rm -Rf "$b/%_sysconfdir/dbus-1" "$b/%_datadir/dbus-1" %post # migrate config variable krb5_kdcip to krb5_server (bnc#851048) /bin/sed -i -e 's,^krb5_kdcip =,krb5_server =,g' %_sysconfdir/sssd/sssd.conf - /sbin/ldconfig %if 0%{?_unitdir:1} %service_add_post sssd.service %endif +# Clear caches, which may have an incompatible format after (especially) downgrade +rm -f /var/lib/sss/db/*.ldb %if 0%{?_unitdir:1} %preun @@ -428,10 +430,10 @@ fi; %_unitdir %else %_initrddir/%name -%_sbindir/rcsssd %endif %_bindir/sss_ssh_* %_sbindir/sssd +%_sbindir/rcsssd %dir %_mandir/??/ %dir %_mandir/??/man?/ %_mandir/??/man1/sss_ssh_*