From: Tollef Fog Heen Date: Thu, 18 Apr 2013 19:57:40 +0000 (+0200) Subject: Use %%, not % in cron.d file X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=22e36c549265f3e9bb322b89bdc7cd17d102b324;p=mirror%2Fdsa-puppet.git Use %%, not % in cron.d file % means newline in cron, %% is an escaped %. --- 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", } } }