Create a new /var/farmOS directory in two steps. #440

This commit is contained in:
Paul Weidner 2021-08-20 20:55:26 +00:00
parent 9e9734c3f5
commit 921c578d3f
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,10 @@ RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
# Create a fresh /var/farmOS directory owned by www-data.
RUN rm -r /var/farmOS && mkdir /var/farmOS && chown www-data:www-data /var/farmOS
# We do this in two steps because of a known issue with Moby.
# @see https://github.com/farmOS/farmOS/pull/440
RUN rm -r /var/farmOS
RUN mkdir /var/farmOS && chown www-data:www-data /var/farmOS
# Change to the www-data user.
USER www-data