Fix error in logrotation configuration.

This commit is contained in:
Christoph 2017-10-22 11:37:14 +02:00
parent ff6074b088
commit 8b82efe7b0
2 changed files with 10 additions and 2 deletions

View File

@ -589,7 +589,11 @@ if [ ! -f "/etc/logrotate.d/apache2" ]; 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
APACHECTL="/usr/local/apache2/bin/apachectl"
else
APACHECTL="\$(which apachectl)"
fi
if [[ -z "\$APACHECTL" ]] ; then
if [[ -f "/etc/init.d/apache2" ]; then
/etc/init.d/apache2 reload > /dev/null

View File

@ -3586,7 +3586,11 @@ if [ ! -f "/etc/logrotate.d/apache2" ]; 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
APACHECTL="/usr/local/apache2/bin/apachectl"
else
APACHECTL="\$(which apachectl)"
fi
if [[ -z "\$APACHECTL" ]] ; then
if [[ -f "/etc/init.d/apache2" ]; then
/etc/init.d/apache2 reload > /dev/null