Fix error in logrotation configuration.
This commit is contained in:
parent
ff6074b088
commit
8b82efe7b0
@ -589,7 +589,11 @@ if [ ! -f "/etc/logrotate.d/apache2" ]; then
|
|||||||
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
|
||||||
|
APACHECTL="/usr/local/apache2/bin/apachectl"
|
||||||
|
else
|
||||||
APACHECTL="\$(which apachectl)"
|
APACHECTL="\$(which apachectl)"
|
||||||
|
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
|
||||||
|
@ -3586,7 +3586,11 @@ if [ ! -f "/etc/logrotate.d/apache2" ]; then
|
|||||||
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
|
||||||
|
APACHECTL="/usr/local/apache2/bin/apachectl"
|
||||||
|
else
|
||||||
APACHECTL="\$(which apachectl)"
|
APACHECTL="\$(which apachectl)"
|
||||||
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user