From f7ef7ce7f8d596d38739c5e96623e8630e1036ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 18 Oct 2018 22:44:11 +0200 Subject: [PATCH] Fix crontab command % escape --- modules/profile/manifests/postgresql/backup_dump.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profile/manifests/postgresql/backup_dump.pp b/modules/profile/manifests/postgresql/backup_dump.pp index e247cf0..fcc2085 100644 --- a/modules/profile/manifests/postgresql/backup_dump.pp +++ b/modules/profile/manifests/postgresql/backup_dump.pp @@ -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, -- 2.41.0