From b2d807ca5fd9dcb0b1c69188e1e3d04ae00489b3 Mon Sep 17 00:00:00 2001 From: David Coutadeur Date: Tue, 6 Feb 2024 11:45:01 +0100 Subject: [PATCH] fix logfile in "Backport specfile cleanup to openldap25 branch" In openldap 2.5, logs are managed by rsyslog, and defined as /var/log/openldap.log --- SPECS/openldap-ltb.spec | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SPECS/openldap-ltb.spec b/SPECS/openldap-ltb.spec index eee38e4..4182061 100644 --- a/SPECS/openldap-ltb.spec +++ b/SPECS/openldap-ltb.spec @@ -36,8 +36,7 @@ %define ldapserverdir %{ldapdir} %define ldapdatadir %{ldapdir}/var/openldap-data %define ldapbackupdir /var/backups/openldap -%define ldaplogdir /var/log/slapd-ltb -%define ldaplogfile %{ldaplogdir}/slapd.log +%define ldaplogfile /var/log/openldap.log %define ldapconfdir %{ldapdir}/etc/openldap/slapd.d %define ldapuser ldap @@ -321,7 +320,6 @@ make install DESTDIR=%{buildroot} STRIP="" # create some directories mkdir -p %{buildroot}%{ldapdatadir} mkdir -p %{buildroot}%{ldapbackupdir} -mkdir -p %{buildroot}%{ldaplogdir} mkdir -p %{buildroot}%{ldapconfdir} mkdir -p %{buildroot}/etc/logrotate.d mkdir -p %{buildroot}/etc/profile.d @@ -626,7 +624,6 @@ fi %{ldapdir}/%{_lib}/libslapi-2.5.so.0* %attr(-,%{ldapuser},%{ldapgroup}) %dir %{ldapdatadir} %attr(-,%{ldapuser},%{ldapgroup}) %dir %{ldapserverdir}/var/run -%attr(-,%{ldapuser},%{ldapgroup}) %dir %{ldaplogdir} %attr(-,%{ldapuser},%{ldapgroup}) %dir %{ldapbackupdir} %attr(770,root,%{ldapgroup}) %dir %{ldapconfdir} %docdir %{ldapdir}/share/man