Browse Source
Fix up script so it doesnt uncomment everything
patch-1
nolim1t
5 years ago
No known key found for this signature in database
GPG Key ID: F6287B82CC84BCBD
1 changed files with
3 additions and
2 deletions
-
configure-box.sh
|
|
@ -30,10 +30,11 @@ sed -i "s/RPCPASS/${RPCPASS}/g; " docker-compose.yml |
|
|
|
if [ ! -z $TESTNET ]; then |
|
|
|
echo "Enabling testnet mode if TESTNET variable is set" |
|
|
|
# Update bitcoin.conf |
|
|
|
sed -i '/[test]/s/^#//g' bitcoin/bitcoin.conf |
|
|
|
sed -i '/testnet=1/s/^#//g' bitcoin/bitcoin.conf |
|
|
|
sed -i 's/#[test]/[test]/g;' bitcoin/bitcoin.conf |
|
|
|
sed -i 's/#testnet=1/testnet=1/g' bitcoin/bitcoin.conf |
|
|
|
# Update docker-compose |
|
|
|
sed -i 's/mainnet/testnet/g; ' docker-compose.yml |
|
|
|
# TODO: lnd.conf |
|
|
|
fi |
|
|
|
echo "Adding tor password" |
|
|
|
SAVE_PASSWORD=`tor --hash-password "${RPCPASS}"` |
|
|
|