squeaknode/start-squeaknode.sh
Jonathan Zernik c39dbb44f1
Improve squeaknode entrypoint command (#583)
* Improve squeaknode entrypoint command

* Fix pargser in main module
2021-01-08 14:17:43 -08:00

22 lines
437 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 squeaknode \
--config config.ini \
--log-level INFO
else
exec squeaknode \
--log-level INFO
fi