]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - nixops/modules/databases/openldap.nix
Remove verbose message from ldap dump
[perso/Immae/Config/Nix.git] / nixops / modules / databases / openldap.nix
index f49adc8c7439b45bb453d04102f1d48b68289748..165a02908f6288544aff053171104f3845b5bb0c 100644 (file)
@@ -61,7 +61,7 @@ in {
     services.cron = {
       systemCronJobs = [
         ''
-          35 1,13 * * * root ${pkgs.openldap}/bin/slapcat -v -b "dc=immae,dc=eu" -f ${pkgs.writeText "slapd.conf" ldapConfig} -l /var/lib/openldap/backup.ldif
+          35 1,13 * * * root ${pkgs.openldap}/bin/slapcat -v -b "dc=immae,dc=eu" -f ${pkgs.writeText "slapd.conf" ldapConfig} -l /var/lib/openldap/backup.ldif | ${pkgs.gnugrep}/bin/grep -v "^# id=[0-9a-f]*$"
         ''
       ];
     };