Skip to content

Commit

Permalink
Don't hardcode base file
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Oct 3, 2024
1 parent 4406570 commit ef6e2bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions images/sandbox-populate-apidb/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
set -ex
export VOLUME_DIR=/mnt/data
export PGPASSWORD=$POSTGRES_PASSWORD

Expand All @@ -12,8 +12,7 @@ else
fi

# Get the data
file="https://github.com/osmus/osm-sandbox-data/raw/refs/heads/main/ncem/cumberland_buildings.osm.bz2"
#$(basename $URL_FILE_TO_IMPORT)
file=$(basename $URL_FILE_TO_IMPORT)
osmFile=$VOLUME_DIR/$file
[ ! -f $osmFile ] && wget $URL_FILE_TO_IMPORT

Expand Down

0 comments on commit ef6e2bc

Please sign in to comment.