Skip to content

Add check for OVERPASS_DIFF_URL in rules_loop.sh, removing irrelevant rules update in case where there are no updates#163

Open
XPav wants to merge 1 commit intowiktorn:masterfrom
XPav:feature/no_area_creation_with_no_diff
Open

Add check for OVERPASS_DIFF_URL in rules_loop.sh, removing irrelevant rules update in case where there are no updates#163
XPav wants to merge 1 commit intowiktorn:masterfrom
XPav:feature/no_area_creation_with_no_diff

Conversation

@XPav
Copy link
Copy Markdown

@XPav XPav commented Mar 5, 2026

This PR incorporates the changes discussed in #158.

With no OVERPASS_DIFF_URL defined, the area rules created in docker-entrypoint.sh will always be good. The update call in rules_loop.sh is not needed and chews up resources with no effect.

Comment thread bin/rules_loop.sh
sleep "$SLEEP_TIME"
if [[ -z "${OVERPASS_DIFF_URL}" ]]; then
echo "OVERPASS_DIFF_URL is not set - updates disabled, assuming areas created on init, sleeping forever"
sleep infinity
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why the command should sleep endlessly instead of exiting with break?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants