#!/bin/sh SCRIPT_DIR="/usr/share/nginx/html/scripts" for f in "$SCRIPT_DIR"/*.sh; do if [ "$f" = "$SCRIPT_DIR/entrypoint.sh" ]; then continue fi if [ -x "$f" ]; then echo "=> Executing $f" "$f" else echo "=> Skipping $f (not executable)" fi done exec nginx "$@"