]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Remove verbose message from ldap dump
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Mar 2019 13:43:01 +0000 (14:43 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Mar 2019 13:43:01 +0000 (14:43 +0100)
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]*$"
         ''
       ];
     };