Escape % in cron command
The % character needs to be escaped in cron commands as it has a special meaning. Change-Id: Iab028133276c8186458c3f80098c9ef2ae58e9a9
This commit is contained in:
parent
4a8f77c2fb
commit
03844fb02d
@ -38,7 +38,7 @@ class logstash::curator (
|
||||
hour => $cron_hour,
|
||||
minute => $cron_minute,
|
||||
environment => 'PATH=/usr/bin:/usr/local/bin',
|
||||
command => "curator --logfile /var/log/curator.log delete indices --older-than ${keep_for_days} --time-unit days --timestring %Y.%m.%d"
|
||||
command => "curator --logfile /var/log/curator.log delete indices --older-than ${keep_for_days} --time-unit days --timestring \%Y.\%m.\%d"
|
||||
}
|
||||
|
||||
include ::logrotate
|
||||
|
Loading…
Reference in New Issue
Block a user