Skip to content

Commit

Permalink
Merge pull request #4236 from frafra/spcgeonode-remove-extra-postgres…
Browse files Browse the repository at this point in the history
…-wait

Spcgeonode remove extra postgres wait
  • Loading branch information
Alessio Fabiani authored Feb 20, 2019
2 parents b807006 + ce054cd commit 17bf351
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions scripts/spcgeonode/geoserver/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,6 @@ set -e
echo "-----------------------------------------------------"
echo "4. (Re)setting OAuth2 Configuration"

# Wait for PostgreSQL
set +e
for i in $(seq 60); do
psql -h postgres -U postgres -c "SELECT client_id FROM oauth2_provider_application" &>/dev/null && break
sleep 1
done
if [ $? != 0 ]; then
echo "PostgreSQL not ready or not initialized"
exit 1
fi
set -e

# Edit /spcgeonode-geodatadir/security/filter/geonode-oauth2/config.xml

# Getting oauth keys and secrets from the database
Expand Down

0 comments on commit 17bf351

Please sign in to comment.