From 684f9dff0ac58104bf19771c5b14f53c208bcffd Mon Sep 17 00:00:00 2001 From: Robin Tuszik Date: Mon, 13 Jan 2025 18:57:30 +0100 Subject: [PATCH] fix: remove update on boot --- start-photon.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/start-photon.sh b/start-photon.sh index d075ac7..078363c 100644 --- a/start-photon.sh +++ b/start-photon.sh @@ -284,7 +284,6 @@ interval_to_seconds() { esac } -# Main execution main() { mkdir -p "$DATA_DIR" "$TEMP_DIR" @@ -296,16 +295,12 @@ main() { url="https://download1.graphhopper.com/public/extracts/by-country-code/${COUNTRY_CODE}/photon-db-${COUNTRY_CODE}-latest" fi - if check_remote_index "$url"; then - log_info "Downloading newer index version" - rm -rf "$INDEX_DIR" - download_index "$DATA_DIR" - fi else log_error "Found invalid index structure, downloading fresh index" rm -rf "$INDEX_DIR" download_index "$DATA_DIR" fi + else log_info "No elasticsearch index found, performing initial download" download_index "$DATA_DIR"