diff --git a/manifests/logrotate.pp b/manifests/logrotate.pp index c9bad6d..7418782 100644 --- a/manifests/logrotate.pp +++ b/manifests/logrotate.pp @@ -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; \\', + "if service ${::httpd::params::apache_name} status > /dev/null; then \\", + " service ${::httpd::params::apache_name} reload > /dev/null; fi; \\", ], $firstaction = 'undef', $lastaction = 'undef',