Incorrect database user variables in wait_for_databases script
The wait_for_databases script currently uses incorrect environment variables for the database users when connecting to the GeoNode databases. This could lead to authentication failures when waiting for the databases to become available.
Expected Behavior
Connect to both databases using env variables correctly
Actual Behavior
In the second and third psql commands, the username should not be the database name (GEONODE_DATABASE / GEONODE_GEODATABASE) but instead the corresponding database user (GEONODE_DATABASE_USER / GEONODE_GEODATABASE_USER).
the test for GEONODE_DATABASE it uses -U ${GEONODE_DATABASE} instead of -U ${GEONODE_DATABASE_USER} the test for GEONODE_GEODATABASE it uses -U ${GEONODE_GEODATABASE} instead of -U ${GEONODE_GEODATABASE_USER}
Steps to Reproduce the Problem
- make a fresh install
- see the logs
Specifications
- GeoNode version: any
- Installation type: any
- Installation method: any
- Platform: any