update central controller docker startup script

This commit is contained in:
Grant Limberg 2022-06-22 09:25:15 -07:00
parent f44b122262
commit e958a83dd4
No known key found for this signature in database
GPG Key ID: 8F2F97D3BE8D7735

View File

@ -80,6 +80,9 @@ echo "{
" > /var/lib/zerotier-one/local.conf
if [ -n "$DB_SERVER_CA" ]; then
echo "secret list"
chmod 600 /secrets/db/*.pem
ls -l /secrets/db/
until /usr/pgsql-10/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...";
sleep 2;