Updating maps import so previously imported pbf files are reset on import. Ignoring map tile initialization script failure when importing.

This commit is contained in:
Roland 2025-03-13 15:52:40 -06:00
parent 28ec996999
commit d2ae135e5b
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
3 changed files with 26 additions and 17 deletions

View file

@ -107,5 +107,6 @@ fi
# Clear map tile cache only after successful import.
yes | /bin/bash /opt/wrolpi/scripts/clear_map_cache.sh
# Use curl to fetch the first few layers of map tiles so the map is ready to use.
bash /opt/wrolpi/wrolpi/scripts/initialize_map_tiles.sh
# Use wget to fetch the first few layers of map tiles so the map is ready to use.
# Failure does not mean the import failed.
bash /opt/wrolpi/wrolpi/scripts/initialize_map_tiles.sh || :