mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
commit
88828db5ee
2 changed files with 42 additions and 0 deletions
25
home.admin/98installRTL.sh
Normal file
25
home.admin/98installRTL.sh
Normal file
|
@ -0,0 +1,25 @@
|
|||
# disable RPC listen
|
||||
# to prevent tls cer auth error
|
||||
sudo sed -i "s/^rpclisten=0.0.0.0:10009/#rpclisten=0.0.0.0:10009/g" /mnt/hdd/lnd/lnd.conf
|
||||
sudo systemctl restart lnd
|
||||
|
||||
# install latest nodejs
|
||||
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
|
||||
sudo apt-get install -y nodejs
|
||||
|
||||
# close source code
|
||||
git clone https://github.com/ShahanaFarooqui/RTL.git
|
||||
cd RTL
|
||||
npm install
|
||||
cd ..
|
||||
|
||||
# open firewall
|
||||
sudo ufw allow 3000
|
||||
sudo ufw --force enable
|
||||
|
||||
# install service
|
||||
sudo cp /home/admin/assets/RTL.service /etc/systemd/system/RTL.service
|
||||
sudo systemctl enable RTL
|
||||
sudo systemctl start RTL
|
||||
|
||||
sleep 2
|
17
home.admin/assets/RTL.service
Normal file
17
home.admin/assets/RTL.service
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Raspibolt RTL: systemd unit for RTL
|
||||
# /etc/systemd/system/RTL.service
|
||||
|
||||
[Unit]
|
||||
Description=RTL daemon
|
||||
Wants=lnd.service
|
||||
After=lnd.service
|
||||
|
||||
[Service]
|
||||
/usr/bin/node /home/admin/RTL/rtl --lndir /home/admin/.lnd/data/chain/bitcoin/mainnet
|
||||
User=root
|
||||
Restart=always
|
||||
TimeoutSec=120
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Reference in a new issue