* Allow changing the default database name (#50)

* Commented out legacy scripts since it seems they are removed in 2.2
pull/54/merge
Tim Sutton 2017-03-27 06:33:10 +02:00 zatwierdzone przez GitHub
rodzic 2abfc38971
commit a920ae0a07
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -128,9 +128,10 @@ else
fi
# Needed when importing old dumps using e.g ndims for constraints
echo "Loading legacy sql"
su - postgres -c "psql template_postgis -f $SQLDIR/legacy_minimal.sql"
su - postgres -c "psql template_postgis -f $SQLDIR/legacy_gist.sql"
# commented out these lines since it seems these scripts are removed in Postgis 2.2
#echo "Loading legacy 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
# It will be owned by the docker db user
su - postgres -c "createdb -O $POSTGRES_USER -T template_postgis $POSTGRES_DBNAME"