Clean up doubled backslashes in logrotate config
According to https://docs.puppetlabs.com/puppet/3.8/reference/lang_datatypes.html there is no way to end a single-quoted string with a literal backslash, so fold this content into the preceding double-quoted string in an effort to satisfy the linter as well. Change-Id: Ic639cd2fc1c7953cbf4311ce7c958f9bdb61e31b
This commit is contained in:
parent
a827227079
commit
0dcb175c42
@ -12,13 +12,11 @@ class httpd::logrotate (
|
||||
],
|
||||
$prerotate = [
|
||||
"if [ -d /etc/logrotate.d/${::httpd::params::apache_name}-prerotate ]; then \\",
|
||||
" run-parts /etc/logrotate.d/${::httpd::params::apache_name}-prerotate; \\",
|
||||
'fi; \\',
|
||||
" run-parts /etc/logrotate.d/${::httpd::params::apache_name}-prerotate; fi ; \\",
|
||||
],
|
||||
$postrotate = [
|
||||
"if service ${::httpd::params::apache_name} status > /dev/null; then \\",
|
||||
" service ${::httpd::params::apache_name} reload > /dev/null; \\",
|
||||
'fi; \\',
|
||||
" service ${::httpd::params::apache_name} reload > /dev/null; fi; \\",
|
||||
],
|
||||
$firstaction = 'undef',
|
||||
$lastaction = 'undef',
|
||||
|
Loading…
Reference in New Issue
Block a user