diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index ea896b99..e18cbd83 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -105,6 +105,10 @@ if [ "$1" = 'mysqld' -a -z "$wantHelp" ]; then echo for f in /docker-entrypoint-initdb.d/*; do + if [ ! -f "$f" ]; then + echo "$0: ignoring $f (not a file)"; echo + continue + fi case "$f" in *.sh) echo "$0: running $f"; . "$f" ;; *.sql) echo "$0: running $f"; "${mysql[@]}" < "$f"; echo ;;