diff --git a/install_httpd-2.4.sh b/install_httpd-2.4.sh index c6b1e91..732273d 100755 --- a/install_httpd-2.4.sh +++ b/install_httpd-2.4.sh @@ -4896,6 +4896,11 @@ 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 + # Nextcloud writes its log as ${HTTPD_USER} + if ls /var/www/*/logs/cloud.log > /dev/null 2>&1 ; then + chown ${HTTPD_USER}:${HTTPD_GROUP} /var/www/*/logs/cloud.log + chmod 640 /var/www/*/logs/cloud.log + fi if [ -f "/var/log/apache2/php_errors.log" ] ; then chown ${HTTPD_USER}:${HTTPD_GROUP} /var/log/apache2/php_errors.log fi