put cache killer right before restart operation
sysv restart OBS-URL: https://build.opensuse.org/package/show/network:ldap/sssd?expand=0&rev=123
This commit is contained in:
parent
992327eeeb
commit
96f34b16a6
@ -397,8 +397,6 @@ rm -Rf "$b/%_sysconfdir/dbus-1" "$b/%_datadir/dbus-1"
|
|||||||
%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
|
||||||
@ -411,8 +409,15 @@ if [ "$1" == "0" ]; then
|
|||||||
fi;
|
fi;
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%if 0%{?_unitdir:1}
|
%if 0%{?_unitdir:1}
|
||||||
|
# Clear caches, which may have an incompatible format afterwards
|
||||||
|
# (especially, downgrades)
|
||||||
|
rm -f /var/lib/sss/db/*.ldb
|
||||||
|
# del_postun includes a try-restart
|
||||||
%service_del_postun sssd.service
|
%service_del_postun sssd.service
|
||||||
|
%else
|
||||||
|
%restart_on_update sssd
|
||||||
%endif
|
%endif
|
||||||
|
%insserv_cleanup
|
||||||
|
|
||||||
%post -n libipa_hbac0 -p /sbin/ldconfig
|
%post -n libipa_hbac0 -p /sbin/ldconfig
|
||||||
%postun -n libipa_hbac0 -p /sbin/ldconfig
|
%postun -n libipa_hbac0 -p /sbin/ldconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user