The python3 DB detection script exits with code 1 (empty) or 2 (legacy), but entrypoint has set -e which kills the script on any non-zero exit. Fixed by using '|| _db_state=$?' pattern to safely capture exit code without triggering set -e.
The python3 DB detection script exits with code 1 (empty) or 2 (legacy), but entrypoint has set -e which kills the script on any non-zero exit. Fixed by using '|| _db_state=$?' pattern to safely capture exit code without triggering set -e.