Properly escape % in cron command
crontab syntax requires % to be escaped, but puppet complains about '\%' in strings, so we need to double escape it in puppet. This will result in a single-escaped % in the crontab. Change-Id: I2fcb3fca5b2d09e8b0a15036c8d4cbad1a83ba3a
This commit is contained in:
parent
c342fb5fe2
commit
c40bb69d82
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user