mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
fixing RTL to v0.1.7-alpha
This commit is contained in:
parent
ea86e9c3c6
commit
3c9a4c4d39
2 changed files with 24 additions and 4 deletions
|
@ -36,24 +36,38 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||
|
||||
# disable RPC listen
|
||||
# to prevent tls cer auth error
|
||||
echo "*** Modify lnd.conf ***"
|
||||
sudo sed -i "s/^rpclisten=0.0.0.0:10009/#rpclisten=0.0.0.0:10009/g" /mnt/hdd/lnd/lnd.conf
|
||||
echo ""
|
||||
#echo "*** Modify lnd.conf ***"
|
||||
#sudo sed -i "s/^rpclisten=0.0.0.0:10009/#rpclisten=0.0.0.0:10009/g" /mnt/hdd/lnd/lnd.conf
|
||||
#echo ""
|
||||
|
||||
# install latest nodejs
|
||||
echo "*** Install NodeJS ***"
|
||||
cd /home/admin
|
||||
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
|
||||
sudo apt-get install -y nodejs
|
||||
echo ""
|
||||
|
||||
# close source code
|
||||
# download source code and set to tag release
|
||||
echo "*** Get the RTL Source Code ***"
|
||||
git clone https://github.com/ShahanaFarooqui/RTL.git
|
||||
cd RTL
|
||||
git reset --hard v0.1.7-alpha
|
||||
|
||||
# install
|
||||
echo "*** Run: npm install ***"
|
||||
npm install
|
||||
cd ..
|
||||
echo ""
|
||||
|
||||
# prepare RTL.conf file
|
||||
echo "*** RTL.conf ***"
|
||||
cp ./RTL/sample-RTL.conf ./RTL/RTL.conf
|
||||
sudo sed -i "s/^macroonPath=.*/macroonPath=\/mnt\/hdd\/lnd\/data\/chain\/${network}\/${chain}net/g" ./RTL/RTL.conf
|
||||
sudo sed -i "s/^lndConfigPath=.*/lndConfigPath=\/mnt\/hdd\/lnd\/lnd.conf/g" ./RTL/RTL.conf
|
||||
sudo sed -i "s/^nodeAuthType=.*/nodeAuthType=DEFAULT/g" ./RTL/RTL.conf
|
||||
sudo sed -i "s/^rtlPass=.*/rtlPass=/g" ./RTL/RTL.conf
|
||||
echo ""
|
||||
|
||||
# open firewall
|
||||
echo "*** Updating Firewall ***"
|
||||
sudo ufw allow 3000
|
||||
|
|
|
@ -80,6 +80,12 @@ else
|
|||
sudo sed -i "s/^chain=.*/chain=main/g" /mnt/hdd/raspiblitz.conf
|
||||
fi
|
||||
|
||||
# edit RTL.conf (if active)
|
||||
if [ "${rtlWebinterface}" = "on" ]; then
|
||||
echo "editing /home/admin/RTL/RTL.conf"
|
||||
sudo sed -i "s/^macroonPath=.*/macroonPath=\/mnt\/hdd\/lnd\/data\/chain\/${network}\/$1/g" /home/admin/RTL/RTL.conf
|
||||
fi
|
||||
|
||||
# now a reboot is needed to load all services fresh
|
||||
# starting up process will display chain sync
|
||||
# ask user todo reboot
|
||||
|
|
Loading…
Add table
Reference in a new issue