]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Fix crontab command % escape
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 18 Oct 2018 20:44:11 +0000 (22:44 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 18 Oct 2018 20:44:11 +0000 (22:44 +0200)
modules/profile/manifests/postgresql/backup_dump.pp

index e247cf027e64535e804060bcbcb5c9668179cb80..fcc2085883ce05f5a043721c966f6386f7c155fd 100644 (file)
@@ -49,7 +49,7 @@ define profile::postgresql::backup_dump (
         description => "Cleanup the database backups",
       },
       {
-        command     => "cd $pg_backup_path ; /usr/bin/rm -f $(ls -1 *T22*.sql | log2rotate --skip 7 --fuzz 7 --delete --format='%Y-%m-%dT%H:%M:%S+02:00.sql')",
+        command     => "cd $pg_backup_path ; /usr/bin/rm -f $(ls -1 *T22*.sql | log2rotate --skip 7 --fuzz 7 --delete --format='\%Y-\%m-\%dT\%H:\%M:\%S+02:00.sql')",
         user        => $pg_user,
         hour        => 3,
         minute      => 1,