diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 2b77850cc0..54a1098f7a 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -103,7 +103,7 @@ if [ "$1" = 'postgres' ]; then for f in /docker-entrypoint-initdb.d/*; do case "$f" in *.sh) echo "$0: running $f"; . "$f" ;; - *.sql) echo "$0: running $f"; "${psql[@]}" < "$f"; echo ;; + *.sql) echo "$0: running $f"; "${psql[@]}" -f "$f"; echo ;; *.sql.gz) echo "$0: running $f"; gunzip -c "$f" | "${psql[@]}"; echo ;; *) echo "$0: ignoring $f" ;; esac