Skip to content

OVERPASS_STOP_AFTER_INIT ignored even when OVERPASS_MODE=init is set #151

@bastien8060

Description

@bastien8060

Description:
If you set OVERPASS_MODE=init together with OVERPASS_STOP_AFTER_INIT=true, you’d expect the container to just run init mode and then exit. That’s the whole point of the flag.

Right now that’s not what happens. If the DB is already initialized, the entrypoint just skips the init step and then runs the server anyway. The flag gets ignored. That makes the idea of OVERPASS_MODE=init inconsistent. The mode says “init only,” but in practice it sometimes turns into “serve,” depending on state. The flag is effectively bypassed.

Fix:
OVERPASS_STOP_AFTER_INIT should always be checked when OVERPASS_MODE=init, regardless of whether actual initialization work is needed.

Reference:
See #150, which moves the check so the flag is always respected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions