kopia lustrzana https://github.com/kartoza/docker-postgis
upgrade to ubuntu latest and fix sql command
rodzic
b981998e79
commit
a854df6fe6
|
@ -1,5 +1,5 @@
|
|||
#--------- Generic stuff all our Dockerfiles should start with so we get caching ------------
|
||||
FROM ubuntu:trusty
|
||||
FROM ubuntu:latest
|
||||
MAINTAINER Tim Sutton<tim@kartoza.com>
|
||||
|
||||
RUN export DEBIAN_FRONTEND=noninteractive
|
||||
|
|
|
@ -78,7 +78,7 @@ else
|
|||
su - postgres -c "createdb template_postgis -E UTF8 -T template0"
|
||||
echo "Enabling template_postgis as a template"
|
||||
CMD="UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template_postgis';"
|
||||
su - postgres -c "$CMD"
|
||||
su - postgres -c "psql -c \"$CMD\""
|
||||
echo "Loading postgis.sql"
|
||||
su - postgres -c "psql template_postgis -f $SQLDIR/postgis.sql"
|
||||
echo "Loading spatial_ref_sys.sql"
|
||||
|
|
Ładowanie…
Reference in New Issue