#!/bin/bash set -e # Start PHP-FPM PHP_FPM=$(find /usr/sbin -name 'php-fpm*' | head -1) $PHP_FPM # Initial Hugo build cd /var/www/html git submodule update --init --recursive hugo # Start nginx in foreground nginx -g 'daemon off;'