SHA256
1
0
forked from jengelh/sssd

Clear caches; rcsssd

OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=122
This commit is contained in:
Jan Engelhardt 2014-08-10 15:23:36 +00:00 committed by Git OBS Bridge
parent ca8df2f4bb
commit 992327eeeb
2 changed files with 8 additions and 2 deletions

View File

@ -25,6 +25,10 @@ Sun Aug 10 12:20:50 UTC 2014 - jengelh@inai.de
over the system bus. over the system bus.
- Remove 0001-BUILD-Link-libsss_ldap_common.so-to-libsss_idmap.so.patch - Remove 0001-BUILD-Link-libsss_ldap_common.so-to-libsss_idmap.so.patch
(merged upstream) (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 Thu Jun 12 14:18:30 UTC 2014 - ckornacker@suse.com

View File

@ -367,6 +367,7 @@ install -d "$b/%_unitdir";
#install src/sysv/systemd/sssd.service "$b/%_unitdir/sssd.service"; #install src/sysv/systemd/sssd.service "$b/%_unitdir/sssd.service";
install -m644 %{S:4} "$b/%_unitdir/sssd.service"; install -m644 %{S:4} "$b/%_unitdir/sssd.service";
rm -Rf "$b/%_initddir" rm -Rf "$b/%_initddir"
ln -s service "$b/%_sbindir/rcsssd"
%else %else
install src/sysv/SUSE/sssd "$b/%_sysconfdir/init.d/sssd"; install src/sysv/SUSE/sssd "$b/%_sysconfdir/init.d/sssd";
ln -sf ../../etc/init.d/sssd "$b/usr/sbin/rcsssd" 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 %post
# migrate config variable krb5_kdcip to krb5_server (bnc#851048) # migrate config variable krb5_kdcip to krb5_server (bnc#851048)
/bin/sed -i -e 's,^krb5_kdcip =,krb5_server =,g' %_sysconfdir/sssd/sssd.conf /bin/sed -i -e 's,^krb5_kdcip =,krb5_server =,g' %_sysconfdir/sssd/sssd.conf
/sbin/ldconfig /sbin/ldconfig
%if 0%{?_unitdir:1} %if 0%{?_unitdir:1}
%service_add_post sssd.service %service_add_post sssd.service
%endif %endif
# Clear caches, which may have an incompatible format after (especially) downgrade
rm -f /var/lib/sss/db/*.ldb
%if 0%{?_unitdir:1} %if 0%{?_unitdir:1}
%preun %preun
@ -428,10 +430,10 @@ fi;
%_unitdir %_unitdir
%else %else
%_initrddir/%name %_initrddir/%name
%_sbindir/rcsssd
%endif %endif
%_bindir/sss_ssh_* %_bindir/sss_ssh_*
%_sbindir/sssd %_sbindir/sssd
%_sbindir/rcsssd
%dir %_mandir/??/ %dir %_mandir/??/
%dir %_mandir/??/man?/ %dir %_mandir/??/man?/
%_mandir/??/man1/sss_ssh_* %_mandir/??/man1/sss_ssh_*