aboutsummaryrefslogtreecommitdiffstats
path: root/nominatim
diff options
context:
space:
mode:
authorU-ES\sadeghi.f <thabogre@gmail.com>2020-11-15 15:21:33 +0000
committerU-ES\sadeghi.f <thabogre@gmail.com>2020-11-15 15:21:33 +0000
commit105e5349e1210c7cd102c385118daf2bc6bd3a66 (patch)
tree37c29acc9d99ce004b311201f45100269c39c0d4 /nominatim
parentupdate (diff)
downloaddockerimages-105e5349e1210c7cd102c385118daf2bc6bd3a66.tar.gz
dockerimages-105e5349e1210c7cd102c385118daf2bc6bd3a66.zip
update
Diffstat (limited to 'nominatim')
-rw-r--r--nominatim/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/nominatim/Dockerfile b/nominatim/Dockerfile
index 2571467..daf922f 100644
--- a/nominatim/Dockerfile
+++ b/nominatim/Dockerfile
@@ -21,7 +21,9 @@ RUN chmod a+x $USERHOME
RUN systemctl restart postgresql
RUN systemctl enable postgresql
RUN systemctl start postgresql
-RUN (su postgres -c 'cd /root && wget https://download.bbbike.org/osm/bbbike/Tehran/Tehran.osm.pbf')
-RUN su postgres -c '/usr/lib/postgresql/12/bin/pg_ctl start -l logfile -D /root/Tehran.osm.pbf'
+RUN (cd /serv && wget https://download.bbbike.org/osm/bbbike/Tehran/Tehran.osm.pbf)
+RUN (cd /serv && chown postgres:postgres /serv)
+RUN (cd /serv && chown postgres:postgres Tehran.osm.pbf)
+RUN su postgres -c '/usr/lib/postgresql/12/bin/pg_ctl start -l logfile -D /serv/Tehran.osm.pbf'
# RUN sudo -u postgres createuser -s $USERNAME
# RUN sudo -u postgres createuser www-data