chatdesk-ui/supabase/postgrest/wrapper.sh

10 lines
202 B
Bash

#!/bin/bash
set -e
# 等待 postgres ready
until pg_isready -h localhost -p 5432 -U postgres; do
echo "[postgrest] Waiting for PostgreSQL on localhost:5432..."
sleep 1
done
exec /usr/bin/postgrest