From 2a0cb0897f2900fcfd47de268a60d38182d04f8a Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Sun, 11 Jun 2017 22:23:49 +0200 Subject: [PATCH] Fix cron command string The % does not need to be escaped and trying to causes the syntax check to fail. Change-Id: I7bf80cbd68f96fac20c2bd81dea6a5692fd03cf4 --- manifests/fetch_remotes.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/fetch_remotes.pp b/manifests/fetch_remotes.pp index a565cbc..1004db2 100644 --- a/manifests/fetch_remotes.pp +++ b/manifests/fetch_remotes.pp @@ -22,7 +22,7 @@ class jeepyb::fetch_remotes( ensure => $ensure, user => $user, minute => $minute, - command => "sleep $((RANDOM\%60+90)) && /usr/local/bin/manage-projects -v >> ${logfile} 2>&1", + command => "sleep $((RANDOM%60+90)) && /usr/local/bin/manage-projects -v >> ${logfile} 2>&1", } include ::logrotate