Revert back to www-data

master
josiah 4 years ago
parent 30099d5c64
commit bb7e475ade

@ -7,8 +7,6 @@ FROM httpd:alpine
# Copy in our configuration files.
COPY conf/ conf/
RUN useradd -ms /bin/sh josiah
RUN set -ex; \
# Create empty default DocumentRoot.
mkdir -p "/var/www/html"; \
@ -32,9 +30,9 @@ RUN set -ex; \
sed -i -e "/^#LoadModule ${i}_module.*/s/^#//" "conf/httpd.conf"; \
done; \
\
# Run httpd as "josiah" (instead of "daemon").
# Run httpd as "www-data" (instead of "daemon").
for i in User Group; do \
sed -i -e "s|^$i .*|$i josiah|" "conf/httpd.conf"; \
sed -i -e "s|^$i .*|$i www-data|" "conf/httpd.conf"; \
done; \
\
# Include enabled configs and sites.

Loading…
Cancel
Save