Skip to content

include_relative does not work #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ruslantalpa opened this issue Nov 28, 2016 · 2 comments
Closed

include_relative does not work #231

ruslantalpa opened this issue Nov 28, 2016 · 2 comments

Comments

@ruslantalpa
Copy link
Contributor

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?

@tianon
Copy link
Member

tianon commented Dec 10, 2016

Ahhh, I didn't realize psql had a -f option! 🤘

If you update docker-entrypoint.sh at the top-level, it will be copied to every version via update.sh -- if you open a PR which updates the top-level script and leave the box checked which gives maintainers push access to your branch, I'd be happy to run the ./update.sh bit for you. 👍

@ruslantalpa
Copy link
Contributor Author

Done #234

@tianon tianon closed this as completed in a00e979 Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants