upgrade to ubuntu latest and fix sql command

pull/24/head
Etienne Trimaille 2015-07-22 12:22:40 +02:00
rodzic b981998e79
commit a854df6fe6
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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"