fix: resolve race condition in entrypoint and simplify ND_DBPATH
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 53s

This commit is contained in:
2026-02-08 15:28:03 -08:00
parent 82db5794dd
commit 4fc5fc3d9d
2 changed files with 5 additions and 2 deletions

View File

@@ -31,6 +31,9 @@ echo "Starting leadership-aware entrypoint..."
echo "Node IP: $NODE_IP"
echo "Consul: $CONSUL_HTTP_ADDR"
# Small sleep to let LiteFS settle and leadership election complete
sleep 5
while true; do
# In LiteFS 0.5, .primary file exists ONLY on replicas.
if [ ! -f /data/.primary ]; then