Skip to content
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

Support for gn_db env variable added #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Zalitoar
Copy link

If gn_db isn't defined when run command is executed 'geonetwork' is used as default database name. 'db_admin' variable was deleted, it isn't used by the application.

Copy link
Contributor

@doublebyte1 doublebyte1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are relevant, and are working as expected. Normally, by convention, UNIX environmental variables are capitalized; could you switch db_gn to DB_GN?

doublebyte1 pushed a commit that referenced this pull request May 9, 2018
@grmpfhmbl
Copy link

Quick question as I was about to implement the same change (and this PR is already over a year old): Why are you not using the same "default value" syntax as is already used for other variables e.g.

db_host="${POSTGRES_DB_HOST:-postgres}"

I'd suggest something like:

db_gn="${POSTGRES_DB_GN:-geonetwork}"

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

Successfully merging this pull request may close these issues.

3 participants