mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-25 07:14:33 +01:00
22 lines
636 B
Bash
Executable File
22 lines
636 B
Bash
Executable File
#!/bin/sh
|
|
|
|
rm -f /container_monitor/lightning_ready
|
|
|
|
while [ ! -f "/container_monitor/bitcoin_ready" ]; do echo "bitcoin not ready" ; sleep 10 ; done
|
|
|
|
echo "bitcoin ready"
|
|
|
|
<% if ( features.indexOf('tor') !== -1 && torifyables && torifyables.indexOf('tor_lightning') !== -1 ) { %>
|
|
#while [ ! -f "/container_monitor/tor_ready" ]; do echo "tor not ready" ; sleep 10 ; done
|
|
while [ -z "${TORIP}" ]; do echo "tor not ready" ; TORIP=$(getent hosts tor | awk '{ print $1 }') ; sleep 10 ; done
|
|
|
|
#TORIP=$(getent hosts tor | awk '{ print $1 }')
|
|
echo "tor ready at IP ${TORIP}"
|
|
|
|
lightningd --proxy=$TORIP:9050
|
|
<% } else { %>
|
|
|
|
lightningd
|
|
|
|
<% } %>
|