2018-11-23 07:49:13 -08:00
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
2019-03-29 07:46:13 -07:00
|
|
|
BITCOIND_ONION="$(cat /var/lib/onion-chef/operator/bitcoind)"
|
2018-12-01 12:48:58 -08:00
|
|
|
echo BITCOIND_ONION="$BITCOIND_ONION"
|
2019-08-05 01:44:38 -07:00
|
|
|
|
2019-11-27 05:04:47 -08:00
|
|
|
if systemctl is-active --quiet clightning; then
|
2019-11-27 05:04:33 -08:00
|
|
|
CLIGHTNING_NODEID=$(lightning-cli getinfo | jq -r '.id')
|
2019-08-05 01:44:38 -07:00
|
|
|
CLIGHTNING_ONION="$(cat /var/lib/onion-chef/operator/clightning)"
|
|
|
|
CLIGHTNING_ID="$CLIGHTNING_NODEID@$CLIGHTNING_ONION:9735"
|
|
|
|
echo CLIGHTNING_NODEID="$CLIGHTNING_NODEID"
|
|
|
|
echo CLIGHTNING_ONION="$CLIGHTNING_ONION"
|
|
|
|
echo CLIGHTNING_ID="$CLIGHTNING_ID"
|
|
|
|
fi
|
|
|
|
|
2019-11-27 05:04:47 -08:00
|
|
|
if systemctl is-active --quiet lnd; then
|
2019-11-27 05:04:34 -08:00
|
|
|
LND_NODEID=$(lncli getinfo | jq -r '.uris[0]')
|
2019-08-05 01:44:38 -07:00
|
|
|
echo LND_NODEID="$LND_NODEID"
|
|
|
|
fi
|
2018-12-01 13:38:08 -08:00
|
|
|
|
2019-03-29 07:46:13 -07:00
|
|
|
NGINX_ONION_FILE=/var/lib/onion-chef/operator/nginx
|
2018-12-01 13:38:08 -08:00
|
|
|
if [ -e "$NGINX_ONION_FILE" ]; then
|
|
|
|
NGINX_ONION="$(cat $NGINX_ONION_FILE)"
|
|
|
|
echo NGINX_ONION="$NGINX_ONION"
|
|
|
|
fi
|
2018-12-10 08:34:41 -08:00
|
|
|
|
2019-03-29 07:46:13 -07:00
|
|
|
LIQUIDD_ONION_FILE=/var/lib/onion-chef/operator/liquidd
|
2019-03-14 02:36:18 -07:00
|
|
|
if [ -e "$LIQUIDD_ONION_FILE" ]; then
|
|
|
|
LIQUIDD_ONION="$(cat $LIQUIDD_ONION_FILE)"
|
|
|
|
echo LIQUIDD_ONION="$LIQUIDD_ONION"
|
|
|
|
fi
|
|
|
|
|
2019-03-29 07:46:13 -07:00
|
|
|
SPARKWALLET_ONION_FILE=/var/lib/onion-chef/operator/spark-wallet
|
2018-12-10 08:34:41 -08:00
|
|
|
if [ -e "$SPARKWALLET_ONION_FILE" ]; then
|
|
|
|
SPARKWALLET_ONION="$(cat $SPARKWALLET_ONION_FILE)"
|
|
|
|
echo SPARKWALLET_ONION="http://$SPARKWALLET_ONION"
|
|
|
|
fi
|
2018-12-27 13:22:52 -08:00
|
|
|
|
2019-03-29 07:46:13 -07:00
|
|
|
ELECTRS_ONION_FILE=/var/lib/onion-chef/operator/electrs
|
2019-02-25 08:00:50 -08:00
|
|
|
if [ -e "$ELECTRS_ONION_FILE" ]; then
|
|
|
|
ELECTRS_ONION="$(cat $ELECTRS_ONION_FILE)"
|
|
|
|
echo ELECTRS_ONION="$ELECTRS_ONION"
|
|
|
|
fi
|
|
|
|
|
2019-03-29 07:46:13 -07:00
|
|
|
SSHD_ONION_FILE=/var/lib/onion-chef/operator/sshd
|
2018-12-27 13:22:52 -08:00
|
|
|
if [ -e "$SSHD_ONION_FILE" ]; then
|
|
|
|
SSHD_ONION="$(cat $SSHD_ONION_FILE)"
|
|
|
|
echo SSHD_ONION="$SSHD_ONION"
|
|
|
|
fi
|