Mercurial > lada > lada-server
comparison db_schema/setup-db.sh @ 1192:d667092cc788
Fixed setup-db script for use with docker.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 29 Nov 2016 15:51:17 +0100 |
parents | 1bc8ab13e1f7 |
children | 00323d9e642c |
comparison
equal
deleted
inserted
replaced
1188:1bc8ab13e1f7 | 1192:d667092cc788 |
---|---|
84 echo create user $ROLE_NAME | 84 echo create user $ROLE_NAME |
85 psql $DB_CONNECT_STRING -d $DB_NAME --command "CREATE SCHEMA geo AUTHORIZATION $ROLE_NAME" | 85 psql $DB_CONNECT_STRING -d $DB_NAME --command "CREATE SCHEMA geo AUTHORIZATION $ROLE_NAME" |
86 | 86 |
87 echo downlaod and import german administrative borders | 87 echo downlaod and import german administrative borders |
88 TS="0101" | 88 TS="0101" |
89 cd /tmp | |
89 if [ ! -f vg250_${TS}.utm32s.shape.ebenen.zip ]; then | 90 if [ ! -f vg250_${TS}.utm32s.shape.ebenen.zip ]; then |
90 curl -O \ | 91 curl -O \ |
91 http://sg.geodatenzentrum.de/web_download/vg/vg250_${TS}/utm32s/shape/vg250_${TS}.utm32s.shape.ebenen.zip | 92 http://sg.geodatenzentrum.de/web_download/vg/vg250_${TS}/utm32s/shape/vg250_${TS}.utm32s.shape.ebenen.zip |
92 fi | 93 fi |
93 unzip -u vg250_${TS}.utm32s.shape.ebenen.zip "*VG250_GEM*" | 94 unzip -u vg250_${TS}.utm32s.shape.ebenen.zip "*VG250_GEM*" |