You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.