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 # Lastly, run startup scripts
for f in /scripts/startup/*.sh; do for f in /scripts/startup/*.sh; do
if [[ -x "$f" ]]; then
echo "Running startup script $f" echo "Running startup script $f"
$f $f
fi
done done
echo "Done with startup"
# Run `cron -f &` so that it's a background job owned by bash and then `wait`. # 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`. # This allows SIGINT (e.g. CTRL-C) to kill cron gracefully, due to our `trap`.