diff --git a/openldap.spec b/openldap.spec index 12df3b8..238c8a6 100644 --- a/openldap.spec +++ b/openldap.spec @@ -342,12 +342,7 @@ rm -f %{buildroot}%{_libdir}/*.la # because we do not want files in %{_libdir}/ rm -f %{buildroot}%{_localstatedir}/openldap-data/DB_CONFIG.example rmdir %{buildroot}%{_localstatedir}/openldap-data -%post - -/sbin/ldconfig - -# create certificate database -%{_libexecdir}/openldap/create-certdb.sh >&/dev/null || : +%post -p /sbin/ldconfig %postun -p /sbin/ldconfig