Update run.sh

Co-authored-by: Robin C. Ladiges <Istador@users.noreply.github.com>
This commit is contained in:
Tysacheglaz 2024-04-18 09:26:16 +05:00 committed by GitHub
parent c33aab8dae
commit 71223b9c99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
run.sh
View File

@ -76,10 +76,10 @@ if [ "$1" == "import" ]; then
echo "INFO: Download PBF file: $DOWNLOAD_PBF"
if [ -f /data/region.poly ]; then
wget ${WGET_ARGS:-} "$DOWNLOAD_PBF" -O - | osmconvert - -B=/data/region.poly -o=/data/region.osm.pbf
chown renderer: /data/region.osm.pbf
else
wget ${WGET_ARGS:-} "$DOWNLOAD_PBF" -O /data/region.osm.pbf
fi
chown renderer: /data/region.osm.pbf
fi
if [ "${UPDATES:-}" == "enabled" ] || [ "${UPDATES:-}" == "1" ]; then