From fb4fc7b77005ba3099e9d1a03f3349ae21871bbf Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Thu, 2 Feb 2012 12:37:02 +0000 Subject: [PATCH] Fix lodgeit cron A '%' sign was not escaped correctly causing a cron error when triggering backups Change-Id: Icd5f78d0a310520a979f24418c41755a5e91ca13 --- modules/lodgeit/manifests/site.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lodgeit/manifests/site.pp b/modules/lodgeit/manifests/site.pp index 144012ccda..bb9b08f8ab 100644 --- a/modules/lodgeit/manifests/site.pp +++ b/modules/lodgeit/manifests/site.pp @@ -65,7 +65,7 @@ define lodgeit::site($port, $image="") { user => root, hour => 6, minute => 23, - command => "sleep $((RANDOM%60+60)) && cd /var/backups/lodgeit_db && drizzledump -uroot ${name} > ${name}.sql && git commit -am \"Updating DB backup for ${name}\"" + command => "sleep $((RANDOM\\%60+60)) && cd /var/backups/lodgeit_db && drizzledump -uroot ${name} > ${name}.sql && git commit -am \"Updating DB backup for ${name}\"" } service { "${name}-paste":