Skip to content

Commit e851d64

Browse files
committed
use -f flag when executing sql scripts
1 parent 819476b commit e851d64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ if [ "$1" = 'postgres' ]; then
103103
for f in /docker-entrypoint-initdb.d/*; do
104104
case "$f" in
105105
*.sh) echo "$0: running $f"; . "$f" ;;
106-
*.sql) echo "$0: running $f"; "${psql[@]}" < "$f"; echo ;;
106+
*.sql) echo "$0: running $f"; "${psql[@]}" -f "$f"; echo ;;
107107
*.sql.gz) echo "$0: running $f"; gunzip -c "$f" | "${psql[@]}"; echo ;;
108108
*) echo "$0: ignoring $f" ;;
109109
esac

0 commit comments

Comments
 (0)