From: Michal Migurski Date: Thu, 4 Feb 2021 04:35:16 +0000 (-0800) Subject: Moved osm-db-functions.sql to /usr/local/share/ X-Git-Tag: live~2202^2~3 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/75caec40a50069397814876d513621404e17c3f1 Moved osm-db-functions.sql to /usr/local/share/ --- diff --git a/docker/postgres/Dockerfile b/docker/postgres/Dockerfile index 9faddd841..8358e6e7f 100644 --- a/docker/postgres/Dockerfile +++ b/docker/postgres/Dockerfile @@ -4,4 +4,4 @@ FROM postgres:11 ADD docker/postgres/openstreetmap-postgres-init.sh /docker-entrypoint-initdb.d/ # Custom database functions are in a SQL file. -ADD db/functions/functions.sql /usr/local/sbin/osm-db-functions.sql +ADD db/functions/functions.sql /usr/local/share/osm-db-functions.sql diff --git a/docker/postgres/openstreetmap-postgres-init.sh b/docker/postgres/openstreetmap-postgres-init.sh index 3973311c1..de620bcec 100755 --- a/docker/postgres/openstreetmap-postgres-init.sh +++ b/docker/postgres/openstreetmap-postgres-init.sh @@ -11,4 +11,4 @@ EOSQL psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -c "CREATE EXTENSION btree_gist" openstreetmap # Define custom functions -psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -f "/usr/local/sbin/osm-db-functions.sql" openstreetmap +psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -f "/usr/local/share/osm-db-functions.sql" openstreetmap