#!/bin/sh
/usr/local/bin/gomplate -V -o /etc/php7/php.ini -f /etc/templates/php.ini.tmpl 1>/dev/null
/usr/local/bin/gomplate -V -o /var/www/app/data/config.php -f /etc/templates/config.php.tmpl 1>/dev/null
exec supercronic -split-logs /etc/crontabs/nginx 1>/dev/null &
exec php-fpm7 -F &
exec nginx -g "daemon off;"