squeaknode/start-squeaknode.sh
Jonathan Zernik a57021ab0c
Use typed config (#566)
* Use typed config

* Use typed config

* Got bitcoin connection working in main config

* Use better defaults for lnd configs

* Got test working for get network using config fixture

* Use sqk_dir_path instead of sqk_dir

* Add logging of bitcoin configs

* Don't use config option when config file doesn't exist
2021-01-05 23:39:04 -08:00

24 lines
473 B
Bash

#!/usr/bin/env bash
# exit from script if error was raised.
set -e
# # 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
sleep 10
# Start using the run server command
if [ -f config.ini ]; then
exec runsqueaknode \
--config config.ini \
--log-level INFO \
run-server
else
exec runsqueaknode \
--log-level INFO \
run-server
fi