Permission updates

This commit is contained in:
Andrei Condurachi 2020-11-22 13:47:02 +02:00
parent fc816b6735
commit 88c520fd90
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ RUN \
# Make sure PHP-FPM executes as apache user # Make sure PHP-FPM executes as apache user
sed -i 's/user = nobody/user = apache/g' /etc/php7/php-fpm.d/www.conf && \ sed -i 's/user = nobody/user = apache/g' /etc/php7/php-fpm.d/www.conf && \
sed -i 's/group = nobody/group = apache/g' /etc/php7/php-fpm.d/www.conf && \ sed -i 's/group = nobody/group = apache/g' /etc/php7/php-fpm.d/www.conf && \
# Allow apache user login
sed -i 's/apache(.*)\/sbin\/nologin/apache\1\/bin\/ash/g' /etc/passwd && \
# Prepare Apache log dir # Prepare Apache log dir
mkdir -p /var/log/apache2 && \ mkdir -p /var/log/apache2 && \
# Clean base directory # Clean base directory