ok back to full path

This commit is contained in:
Grant Limberg 2025-09-04 11:11:14 -07:00
parent 1da9e24905
commit 092fc268d3

View file

@ -133,12 +133,12 @@ if [ -n "$DB_SERVER_CA" ]; then
echo "secret list" echo "secret list"
chmod 600 /secrets/db/*.pem chmod 600 /secrets/db/*.pem
ls -l /secrets/db/ ls -l /secrets/db/
until pg_isready -h ${ZT_DB_HOST} -p ${ZT_DB_PORT} -d "sslmode=prefer sslcert=${DB_CLIENT_CERT} sslkey=${DB_CLIENT_KEY} sslrootcert=${DB_SERVER_CA}"; do until /opt/conda/envs/central_controller/bin/pg_isready -h ${ZT_DB_HOST} -p ${ZT_DB_PORT} -d "sslmode=prefer sslcert=${DB_CLIENT_CERT} sslkey=${DB_CLIENT_KEY} sslrootcert=${DB_SERVER_CA}"; do
echo "Waiting for PostgreSQL..."; echo "Waiting for PostgreSQL...";
sleep 2; sleep 2;
done done
else else
until pg_isready -h ${ZT_DB_HOST} -p ${ZT_DB_PORT}; do until /opt/conda/envs/central_controller/bin/pg_isready -h ${ZT_DB_HOST} -p ${ZT_DB_PORT}; do
echo "Waiting for PostgreSQL..."; echo "Waiting for PostgreSQL...";
sleep 2; sleep 2;
done done