Better scripting support

This commit is contained in:
Elliot Saba 2017-07-23 21:50:04 -07:00
parent 3d3a0be3cc
commit bd46b36841
1 changed files with 5 additions and 2 deletions

View File

@ -19,9 +19,12 @@ export NGINX_PID=$!
# Lastly, run startup scripts
for f in /scripts/startup/*.sh; do
echo "Running startup script $f"
$f
if [[ -x "$f" ]]; then
echo "Running startup script $f"
$f
fi
done
echo "Done with startup"
# Run `cron -f &` so that it's a background job owned by bash and then `wait`.
# This allows SIGINT (e.g. CTRL-C) to kill cron gracefully, due to our `trap`.