From af3ee7b581a1bf6ab178df7a07afcefe0799545a Mon Sep 17 00:00:00 2001 From: nolim1t Date: Tue, 10 Mar 2020 12:08:49 +0700 Subject: [PATCH] Box configuration --- configure-box.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure-box.sh b/configure-box.sh index 4a0b501..296e1ca 100644 --- a/configure-box.sh +++ b/configure-box.sh @@ -14,11 +14,11 @@ echo "Start box configuration" echo "Installing RPCAuth.py and configuring secrets" cd bin/ -wget -qO- "https://raw.githubusercontent.com/bitcoin/bitcoin/master/share/rpcauth/rpcauth.py" 2>/dev/null +wget -q "https://raw.githubusercontent.com/bitcoin/bitcoin/master/share/rpcauth/rpcauth.py" 2>/dev/null chmod 755 rpcauth.py ./rpcauth.py lncm | tee ../secrets/generated.txt | head -2 | tail -1 > ../secrets/rpcauth.txt -tail -1 ../secrets/rpcauth.txt > ../secrets/rpcpass.txt -rm rpcauth.py../secrets/generated.txt +tail -1 ../secrets/generated.txt > ../secrets/rpcpass.txt +rm rpcauth.py ../secrets/generated.txt cd .. echo "Installing RPCAuth into bitcoin.conf" cat secrets/rpcauth.txt >> bitcoin/bitcoin.conf @@ -27,6 +27,6 @@ echo "Configuring invoicer rpc info" sed -i ":s/RPCPASS/${RPCPASS}/g; " invoicer/invoicer.conf echo "Configuring LND rpc info" sed -i ":s/RPCPASS/${RPCPASS}/g; " lnd/lnd.conf - +rm configure-box.sh echo "Box Configuration complete"