diff --git a/BashScripts/install-apache/apache-install-logrotate.sh b/BashScripts/install-apache/apache-install-logrotate.sh index 73ddb7c..581f622 100644 --- a/BashScripts/install-apache/apache-install-logrotate.sh +++ b/BashScripts/install-apache/apache-install-logrotate.sh @@ -24,14 +24,14 @@ if ! grep -q "/var/www/\*/logs/\*\.log" "/etc/logrotate.d/apache2"; then create 640 root adm sharedscripts postrotate - if invoke-rc.d apache2 status > /dev/null 2>&1; then \ - invoke-rc.d apache2 reload > /dev/null 2>&1; \ + if invoke-rc.d apache2 status > /dev/null 2>&1; then + invoke-rc.d apache2 reload > /dev/null 2>&1; fi; endscript prerotate - if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ - run-parts /etc/logrotate.d/httpd-prerotate; \ - fi; \ + if [ -d /etc/logrotate.d/httpd-prerotate ]; then + run-parts /etc/logrotate.d/httpd-prerotate; + fi; endscript } EOT