From 1016a513e0fbc09b9fa2e3876f3b3ec7b4dd9e49 Mon Sep 17 00:00:00 2001 From: Johan Date: Wed, 8 Mar 2023 12:29:48 +0100 Subject: [PATCH] Update install-apache.sh --- BashScripts/install-apache.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/BashScripts/install-apache.sh b/BashScripts/install-apache.sh index f90654b..e06dd4f 100644 --- a/BashScripts/install-apache.sh +++ b/BashScripts/install-apache.sh @@ -185,14 +185,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