mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 20:13:44 +02:00
update central controller docker startup script
This commit is contained in:
parent
f44b122262
commit
e958a83dd4
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ echo "{
|
||||||
" > /var/lib/zerotier-one/local.conf
|
" > /var/lib/zerotier-one/local.conf
|
||||||
|
|
||||||
if [ -n "$DB_SERVER_CA" ]; then
|
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
|
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...";
|
echo "Waiting for PostgreSQL...";
|
||||||
sleep 2;
|
sleep 2;
|
||||||
|
|
Loading…
Add table
Reference in a new issue