Wait for lnd tls cert to exist in docker volume before start sqkserver (#288)

This commit is contained in:
Jonathan Zernik 2020-10-13 12:22:34 -07:00 committed by GitHub
parent 8386e7e570
commit 4d5482af3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,13 @@ update-ca-certificates
# needs to be told to use it over its own embedded bundle
export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
# Wait for the lnd cert file to exist before starting
while ! test -f "/root/.lnd/tls.cert"; do
sleep 10
echo "Still waiting for lnd cert file to exist..."
done
# Start using the run server command
exec runsqueakserver \
--config config.ini \
--log-level INFO \