Skip to content

include_relative does not work #231

Closed
@ruslantalpa

Description

@ruslantalpa

It would be nice to be able to have the files in the docker-entrypoint-initdb.d in any directory structure and have only a few files in the root of the directory, then use \ir inside them.
This line prevents one from doing that

*.sql)    echo "$0: running $f"; "${psql[@]}" < "$f"; echo ;;

If it's changed to

*.sql)    echo "$0: running $f"; "${psql[@]}" -f "$f"; echo ;;

then everything works.

I can submit a PR, i just need to know do you need all the entrypoints files for all versions modified or is there a process that the one at the top is copied everywhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions