#!/bin/sh set -e errors=$(/opt/phpbrew/.phpbrew/php/php-7.0.4/sbin/php-fpm --fpm-config /opt/phpbrew/.phpbrew/php/php-7.0.4/etc/php-fpm.conf -t 2>&1 | grep "\[ERROR\]" || true); if [ -n "$errors" ]; then echo "Please fix your configuration file…" echo $errors exit 1 fi exit 0