Update run.sh

Add upgrade of PostGIS extensions
This commit is contained in:
Olivier DEBAUCHE 2021-06-12 15:02:06 +02:00 committed by GitHub
parent f415088e21
commit d25c9db36c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
run.sh
View File

@ -104,10 +104,10 @@ if [ "$1" = "upgrade" ]; then
# Initialize PostgreSQL # Initialize PostgreSQL
createPostgresConfig createPostgresConfig
service postgresql start service postgresql start
# Upgrade PostGIS
sudo -u postgres psql -d gis -c "SELECT PostGIS_Extensions_Upgrade();"
service postgresql stop service postgresql stop
exit 0 exit 0