run ldconfig in %post and %postun

We ship shared libraries, ldconfig is mandatory.
This commit is contained in:
Michal Schmidt 2012-01-22 20:46:52 +01:00
parent 9d70f4d7e8
commit 918fcea6b1

View File

@ -174,6 +174,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d/
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/rsyslog.d/ install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/rsyslog.d/
%post %post
/sbin/ldconfig
/bin/systemd-machine-id-setup > /dev/null 2>&1 || : /bin/systemd-machine-id-setup > /dev/null 2>&1 || :
/bin/systemctl daemon-reexec > /dev/null 2>&1 || : /bin/systemctl daemon-reexec > /dev/null 2>&1 || :
@ -214,6 +215,7 @@ else
fi fi
%postun %postun
/sbin/ldconfig
if [ $1 -ge 1 ] ; then if [ $1 -ge 1 ] ; then
/bin/systemctl daemon-reload > /dev/null 2>&1 || : /bin/systemctl daemon-reload > /dev/null 2>&1 || :
/bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || : /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :