Escape use of '%' in cron entries.
The '%' has special meaning in cron. Escape the use of this character in cron entries to allow these cron entries to run properly. Change-Id: I049a8a2a4454f99aedb7fe3017db231b8a13e569 Reviewed-on: https://review.openstack.org/27294 Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
55123aa1d3
commit
ffd659db39
@ -53,7 +53,7 @@ class openstack_project::logstash (
|
||||
user => 'root',
|
||||
hour => '5',
|
||||
minute => '0',
|
||||
command => 'curl -XDELETE "http://localhost:9200/logstash-`date -d \'last week\' +%Y.%m.%d`/"',
|
||||
command => 'curl -XDELETE "http://localhost:9200/logstash-`date -d \'last week\' +\%Y.\%m.\%d`/"',
|
||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ class openstack_project::logstash (
|
||||
user => 'root',
|
||||
hour => '5',
|
||||
minute => '0',
|
||||
command => 'curl -XPOST "http://localhost:9200/logstash-`date -d yesterday +%Y.%m.%d`/_optimize" -d \'max_num_segments=1\'',
|
||||
command => 'curl -XPOST "http://localhost:9200/logstash-`date -d yesterday +\%Y.\%m.\%d`/_optimize" -d \'max_num_segments=1\'',
|
||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user