From e54d34a84d2ee4526c301fee4e905891cb2d819a Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 26 May 2020 21:09:33 +0200 Subject: slapcat-all.sh: Use ldapsearch(1) to generate the LDIF. Unlike slapcat(1) it doesn't require write access to ~openldap, so we don't have to weaken bacula-fd.service. --- roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/bacula-dir') diff --git a/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2 b/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2 index 0ab213b..3e37614 100644 --- a/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2 +++ b/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2 @@ -79,7 +79,7 @@ JobDefs { Runs On Success = yes Runs On Failure = yes Runs When = after - Command = "/usr/bin/find /var/lib/bacula/tmp -type f -name '*.ldif' -delete" + Command = "/usr/bin/find /var/lib/bacula/tmp -type f \( -name '*.ldif' -o -name 'slapd-*' \) -delete" } Pool = database Priority = 20 -- cgit v1.2.3