mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-25 14:32:09 +02:00
Fix ownership for php-fpm logs
This commit is contained in:
parent
dcc3c2310d
commit
22d7013406
@ -35,10 +35,12 @@ RUN apt-get update && \
|
|||||||
rm -rf /var/cache/* /var/lib/apt/lists/*
|
rm -rf /var/cache/* /var/lib/apt/lists/*
|
||||||
RUN echo "www-data ALL = NOPASSWD: /usr/sbin/service php7.3-fpm start, /usr/sbin/service php7.3-fpm status, /usr/sbin/service php7.3-fpm stop" > /etc/sudoers.d/www-data && \
|
RUN echo "www-data ALL = NOPASSWD: /usr/sbin/service php7.3-fpm start, /usr/sbin/service php7.3-fpm status, /usr/sbin/service php7.3-fpm stop" > /etc/sudoers.d/www-data && \
|
||||||
chmod 0440 /etc/sudoers.d/www-data
|
chmod 0440 /etc/sudoers.d/www-data
|
||||||
# Pre-create directories with the correct permissions
|
# Pre-create files with the correct permissions
|
||||||
RUN mkdir /run/php && \
|
RUN mkdir /run/php && \
|
||||||
chown www-data /run/php && \
|
touch /var/log/php7.3-fpm.log && \
|
||||||
chmod 700 /run/php
|
chown www-data /run/php /var/log/php7.3-fpm.log && \
|
||||||
|
chmod 700 /run/php /var/log/php7.3-fpm.log && \
|
||||||
|
ln -sf /dev/stdout /var/log/php7.3-fpm.log
|
||||||
|
|
||||||
# NGINX
|
# NGINX
|
||||||
EXPOSE 8000/tcp
|
EXPOSE 8000/tcp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user