Browse Source

Remove configuration

patch-1
nolim1t 5 years ago
parent
commit
e71657b5e7
No known key found for this signature in database GPG Key ID: F6287B82CC84BCBD
  1. 15
      install-box.sh

15
install-box.sh

@ -25,20 +25,5 @@ rm -fr README.md
rm -fr LICENSE
rm -fr install-box.sh
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
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
cd ..
echo "Installing RPCAuth into bitcoin.conf"
cat secrets/rpcauth.txt >> bitcoin/bitcoin.conf
RPCPASS=`cat secrets/rpcpass.txt`
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
echo "Installing complete"

Loading…
Cancel
Save