From 397c78aa25c8d129cad39ca5ec9cdf94fb15d0c5 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 27 Dec 2017 13:19:55 +0100 Subject: [PATCH] Fix error in creating logrotate onfiguration file. --- install_httpd-2.4.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install_httpd-2.4.sh b/install_httpd-2.4.sh index b0c11c5..50dc309 100755 --- a/install_httpd-2.4.sh +++ b/install_httpd-2.4.sh @@ -3596,16 +3596,16 @@ if [ ! -f "/etc/logrotate.d/apache2" ]; then if ls /var/www/*/logs/php_errors.log > /dev/null 2>&1 ; then chown ${HTTPD_USER}:${HTTPD_GROUP} /var/www/*/logs/php_errors.log fi - if [[ -f "/var/log/apache2/php_errors.log" ]] ; then + if [ -f "/var/log/apache2/php_errors.log" ] ; then chown ${HTTPD_USER}:${HTTPD_GROUP} /var/log/apache2/php_errors.log fi - if [[ -x "/usr/local/apache2/bin/apachectl" ]]; then + if [ -x "/usr/local/apache2/bin/apachectl" ]; then APACHECTL="/usr/local/apache2/bin/apachectl" else APACHECTL="\$(which apachectl)" fi - if [[ -z "\$APACHECTL" ]] ; then - if [[ -f "/etc/init.d/apache2" ]; then + if [ -z "\$APACHECTL" ] ; then + if [ -f "/etc/init.d/apache2" ]; then /etc/init.d/apache2 reload > /dev/null else echo "Reloading apache service failed!"