Skip to content

Commit

Permalink
fix: remove update on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuszik committed Jan 13, 2025
1 parent 8242e3d commit 684f9df
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions start-photon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ interval_to_seconds() {
esac
}

# Main execution
main() {
mkdir -p "$DATA_DIR" "$TEMP_DIR"

Expand All @@ -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"
Expand Down

0 comments on commit 684f9df

Please sign in to comment.