docker-images/pluie/alpine-fpm-php7/pre-init.d/10-apache.sh

12 lines
316 B
Bash
Raw Normal View History

2017-02-16 13:30:26 +00:00
#!/usr/bin/bash
# @app pluie/alpine-apache
# @author a-Sansara https://git.pluie.org/pluie/docker-images
if [ ! -z "$FIX_OWNERSHIP" ] && [ "$FIX_OWNERSHIP" -eq 1 ] && [ -d /app/$WWW_DIR ]; then
chown -R 1000:apache /app/$WWW_DIR
fi
touch /var/log/apache2/error.log
tail -F /var/log/apache2/error.log &