10 lines
299 B
Bash
10 lines
299 B
Bash
#!/bin/sh
|
|
# Legacy images ship their own start.sh in the app root and do the whole setup themselves.
|
|
[ -f "${APP_ROOT:-/var/www/html}/start.sh" ] && exit 0
|
|
|
|
for f in /etc/entrypoint.d/*.sh; do
|
|
if [ -x "$f" ]; then
|
|
"$f" || { echo "entrypoint script failed: $f" >&2; exit 1; }
|
|
fi
|
|
done
|