#!/bin/sh set -eu # Image and Compose both select www-data; validation and FPM inherit this identity. if [ "$1" = "php-fpm" ]; then if [ "$(id -u)" = 0 ]; then echo 'Refusing to validate or serve FPM as root; use www-data.' >&2 exit 1 fi php /var/www/html/bin/check-config.php fi exec docker-php-entrypoint "$@"