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!"