]> git.openstreetmap.org Git - rails.git/commitdiff
Moved osm-db-functions.sql to /usr/local/share/
authorMichal Migurski <mike@teczno.com>
Thu, 4 Feb 2021 04:35:16 +0000 (20:35 -0800)
committerMichal Migurski <mike@teczno.com>
Sat, 13 Feb 2021 06:56:17 +0000 (22:56 -0800)
docker/postgres/Dockerfile
docker/postgres/openstreetmap-postgres-init.sh

index 9faddd841891ebca693b6e6f4078cb4614e8db0e..8358e6e7f545027a9e1522835daf10ee700f96dd 100644 (file)
@@ -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
index 3973311c12e85f8fb27a9d3b4cd585e0e2476453..de620bcec8eabbcbc1133e056ccf730b6c121fdf 100755 (executable)
@@ -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