From 22e36c549265f3e9bb322b89bdc7cd17d102b324 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Thu, 18 Apr 2013 21:57:40 +0200 Subject: [PATCH] Use %%, not % in cron.d file % means newline in cron, %% is an escaped %. --- modules/roles/manifests/weblog_provider.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/roles/manifests/weblog_provider.pp b/modules/roles/manifests/weblog_provider.pp index 94a9ef7a5..ee6fabcbc 100644 --- a/modules/roles/manifests/weblog_provider.pp +++ b/modules/roles/manifests/weblog_provider.pp @@ -6,7 +6,7 @@ class roles::weblog_provider { } } else { file { '/etc/cron.d/puppet-weblog-provider': - content => "SHELL=/bin/bash\n\n0 */4 * * * weblogsync sleep $((RANDOM % 1800)); rsync -a --delete-excluded --include '*-public-access.log-*gz' --exclude '**' /var/log/apache2/. weblogsync@ravel:-weblogs-incoming-\n", + content => "SHELL=/bin/bash\n\n0 */4 * * * weblogsync sleep $((RANDOM %& 1800)); rsync -a --delete-excluded --include '*-public-access.log-*gz' --exclude '**' /var/log/apache2/. weblogsync@ravel:-weblogs-incoming-\n", } } } -- 2.20.1