kopia lustrzana https://github.com/kartoza/docker-postgis
9.5 2.2 (#58)
* Allow changing the default database name (#50) * Commented out legacy scripts since it seems they are removed in 2.2pull/54/merge
rodzic
2abfc38971
commit
a920ae0a07
|
@ -128,9 +128,10 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Needed when importing old dumps using e.g ndims for constraints
|
# Needed when importing old dumps using e.g ndims for constraints
|
||||||
echo "Loading legacy sql"
|
# commented out these lines since it seems these scripts are removed in Postgis 2.2
|
||||||
su - postgres -c "psql template_postgis -f $SQLDIR/legacy_minimal.sql"
|
#echo "Loading legacy sql"
|
||||||
su - postgres -c "psql template_postgis -f $SQLDIR/legacy_gist.sql"
|
#su - postgres -c "psql template_postgis -f $SQLDIR/legacy_minimal.sql"
|
||||||
|
#su - postgres -c "psql template_postgis -f $SQLDIR/legacy_gist.sql"
|
||||||
# Create a default db called 'gis' that you can use to get up and running quickly
|
# Create a default db called 'gis' that you can use to get up and running quickly
|
||||||
# It will be owned by the docker db user
|
# It will be owned by the docker db user
|
||||||
su - postgres -c "createdb -O $POSTGRES_USER -T template_postgis $POSTGRES_DBNAME"
|
su - postgres -c "createdb -O $POSTGRES_USER -T template_postgis $POSTGRES_DBNAME"
|
||||||
|
|
Ładowanie…
Reference in New Issue