diff --git a/openldap.spec b/openldap.spec index 4d36f44..dc86ed5 100644 --- a/openldap.spec +++ b/openldap.spec @@ -289,7 +289,7 @@ install -m 0755 -d %{buildroot}%{_localstatedir}/run/openldap # setup autocreation of runtime directories on tmpfs mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d -install -m 0644 %SOURCE3 %{buildroot}%{_sysconfdir}/tmpfiles.d/slapd.conf +install -m 0644 %SOURCE3 %{buildroot}%{_tmpfilesdir}/slapd.conf # install default ldap.conf (customized) rm -f %{buildroot}%{_sysconfdir}/openldap/ldap.conf @@ -536,8 +536,8 @@ exit 0 %config(noreplace) %dir %attr(0750,ldap,ldap) %{_sysconfdir}/openldap/slapd.d %config(noreplace) %{_sysconfdir}/openldap/schema %config(noreplace) %{_sysconfdir}/sysconfig/slapd -%config(noreplace) %{_sysconfdir}/tmpfiles.d/slapd.conf %config(noreplace) %{_sysconfdir}/openldap/check_password.conf +{_tmpfilesdir}/slapd.conf %dir %attr(0700,ldap,ldap) %{_sharedstatedir}/ldap %dir %attr(-,ldap,ldap) %{_localstatedir}/run/openldap %{_unitdir}/slapd.service