Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: probe the schema over TCP too (#11106)

Adam Eivya05db82b2380
diff --git a/scripts/db.sh b/scripts/db.sh
index 1acb7e0510..49cf913829 100755
--- a/scripts/db.sh
+++ b/scripts/db.sh
@@ -314,7 +314,7 @@ start_docker() {
# socket-only temp server, so a default (socket) probe passes too early.
# Also require the base schema (01-init.sql) so dependents don't race it.
if docker compose exec -T db pg_isready -h 127.0.0.1 -U "$PGUSER" >/dev/null 2>&1 &&
- [ "$(docker compose exec -T db psql -X -U "$PGUSER" -d "$PGDATABASE" -tAc "SELECT 1 FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'memories' LIMIT 1" 2>/dev/null | tr -d '[:space:]')" = "1" ]; then
+ [ "$(docker compose exec -T db psql -X -h 127.0.0.1 -U "$PGUSER" -d "$PGDATABASE" -tAc "SELECT 1 FROM information_schema.tables WHERE table_schema = 'public' AND table_name = 'memories' LIMIT 1" 2>/dev/null | tr -d '[:space:]')" = "1" ]; then
log "PostgreSQL ready on port $PGPORT"
return
fi