You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current docker-entrypoint.sh file checks the existence of the GeoNetwork DB by a select in pg_database with the line:
if psql -h "$db_host" -U "$POSTGRES_DB_USERNAME" -p "$db_port" -tqc "SELECT 1 FROM pg_database WHERE datname = '$db_name'" | grep -q 1; then
Anyway pgsql will try and connect to a DB with the same name of the user if a db is not specified.
In the case no DB exists with such a name, the script will misbehave.
We could use the default postgres DB for the test connection.
The text was updated successfully, but these errors were encountered:
etj
added a commit
to etj/docker-geonetwork
that referenced
this issue
Apr 4, 2019
The current
docker-entrypoint.sh
file checks the existence of the GeoNetwork DB by a select in pg_database with the line:Anyway
pgsql
will try and connect to a DB with the same name of the user if a db is not specified.In the case no DB exists with such a name, the script will misbehave.
We could use the default
postgres
DB for the test connection.The text was updated successfully, but these errors were encountered: