chatai/supabase/postgres/wrapper.sh

11 lines
246 B
Bash

#!/bin/bash
# 捕获 SIGINT / SIGTERM / SIGQUIT 信号以优雅退出
cleanup() {
echo "[gotrue] Caught termination signal, shutting down..."
exit 0
}
trap SIGINT SIGQUIT
exec /usr/local/bin/docker-entrypoint.sh postgres -D /etc/postgresql