Fix error in creating logrotate onfiguration file.
This commit is contained in:
		| @@ -3596,16 +3596,16 @@ if [ ! -f "/etc/logrotate.d/apache2" ]; then | |||||||
|          if ls /var/www/*/logs/php_errors.log > /dev/null 2>&1 ; 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 |             chown ${HTTPD_USER}:${HTTPD_GROUP} /var/www/*/logs/php_errors.log | ||||||
|          fi |          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 |             chown ${HTTPD_USER}:${HTTPD_GROUP} /var/log/apache2/php_errors.log | ||||||
|          fi |          fi | ||||||
|          if [[ -x "/usr/local/apache2/bin/apachectl" ]]; then |          if [ -x "/usr/local/apache2/bin/apachectl" ]; then | ||||||
|             APACHECTL="/usr/local/apache2/bin/apachectl" |             APACHECTL="/usr/local/apache2/bin/apachectl" | ||||||
|          else |          else | ||||||
|             APACHECTL="\$(which apachectl)" |             APACHECTL="\$(which apachectl)" | ||||||
|          fi |          fi | ||||||
|          if [[ -z "\$APACHECTL" ]] ; then |          if [ -z "\$APACHECTL" ] ; then | ||||||
|             if [[ -f "/etc/init.d/apache2" ]; then |             if [ -f "/etc/init.d/apache2" ]; then | ||||||
|                /etc/init.d/apache2 reload > /dev/null |                /etc/init.d/apache2 reload > /dev/null | ||||||
|             else |             else | ||||||
|                echo "Reloading apache service failed!" |                echo "Reloading apache service failed!" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user