mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
pg_isready can use SSL
This commit is contained in:
parent
26d1cf9186
commit
f44b122262
1 changed files with 11 additions and 4 deletions
|
@ -79,10 +79,17 @@ echo "{
|
||||||
}
|
}
|
||||||
" > /var/lib/zerotier-one/local.conf
|
" > /var/lib/zerotier-one/local.conf
|
||||||
|
|
||||||
until /usr/pgsql-10/bin/pg_isready -h ${ZT_DB_HOST} -p ${ZT_DB_PORT}; do
|
if [ -n "$DB_SERVER_CA" ]; then
|
||||||
echo "Waiting for PostgreSQL...";
|
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
|
||||||
sleep 2;
|
echo "Waiting for PostgreSQL...";
|
||||||
done
|
sleep 2;
|
||||||
|
done
|
||||||
|
else
|
||||||
|
until /usr/pgsql-10/bin/pg_isready -h ${ZT_DB_HOST} -p ${ZT_DB_PORT}; do
|
||||||
|
echo "Waiting for PostgreSQL...";
|
||||||
|
sleep 2;
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
export GLIBCXX_FORCE_NEW=1
|
export GLIBCXX_FORCE_NEW=1
|
||||||
export GLIBCPP_FORCE_NEW=1
|
export GLIBCPP_FORCE_NEW=1
|
||||||
|
|
Loading…
Add table
Reference in a new issue