rtl: install correctly for paralell chains

This commit is contained in:
openoms 2021-07-06 00:47:05 +01:00
parent 982a4d593f
commit 61e5887bb5
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65
4 changed files with 6 additions and 6 deletions

View File

@ -128,7 +128,7 @@ if [ "${crtlWebinterface}" != "${choice}" ]; then
sudo systemctl start cRTL sudo systemctl start cRTL
echo "waiting 10 secs .." echo "waiting 10 secs .."
sleep 10 sleep 10
/home/admin/config.scripts/bonus.rtl.sh menu lnd $CHAIN /home/admin/config.scripts/bonus.rtl.sh menu cln $CHAIN
else else
l1="!!! FAIL on RTL for CLN $CHAIN install !!!" l1="!!! FAIL on RTL for CLN $CHAIN install !!!"
l2="Try manual install on terminal after reboot with:" l2="Try manual install on terminal after reboot with:"

View File

@ -128,7 +128,7 @@ if [ "${tcrtlWebinterface}" != "${choice}" ]; then
sudo systemctl start tcRTL sudo systemctl start tcRTL
echo "waiting 10 secs .." echo "waiting 10 secs .."
sleep 10 sleep 10
/home/admin/config.scripts/bonus.rtl.sh menu lnd $CHAIN /home/admin/config.scripts/bonus.rtl.sh menu cln $CHAIN
else else
l1="!!! FAIL on RTL for CLN $CHAIN install !!!" l1="!!! FAIL on RTL for CLN $CHAIN install !!!"
l2="Try manual install on terminal after reboot with:" l2="Try manual install on terminal after reboot with:"

View File

@ -248,7 +248,7 @@ Wants=lnd.service
After=lnd.service After=lnd.service
[Service] [Service]
Environment=\"RTL_CONFIG_PATH=/home/rtl/${netprefix}${typeprefix}RTL/\" Environment=\"RTL_CONFIG_PATH=/home/rtl/${netprefix}RTL/\"
ExecStart=/usr/bin/node /home/rtl/RTL/rtl ExecStart=/usr/bin/node /home/rtl/RTL/rtl
User=rtl User=rtl
Restart=always Restart=always
@ -282,8 +282,8 @@ WantedBy=multi-user.target
[Unit] [Unit]
Description=${netprefix}${typeprefix}RTL daemon Description=${netprefix}${typeprefix}RTL daemon
Wants=${netprefix}lightning.service Wants=${netprefix}lightningd.service
After=${netprefix}lightning.service After=${netprefix}lightningd.service
[Service] [Service]
Environment=\"RTL_CONFIG_PATH=/home/rtl/${netprefix}RTL/\" Environment=\"RTL_CONFIG_PATH=/home/rtl/${netprefix}RTL/\"

View File

@ -64,7 +64,7 @@ if [ $1 = on ];then
# symlink to /home/bitcoin/.lightning/lightning-rpc from the chosen network directory # symlink to /home/bitcoin/.lightning/lightning-rpc from the chosen network directory
sudo rm /home/bitcoin/.lightning/lightning-rpc # delete old symlink sudo rm /home/bitcoin/.lightning/lightning-rpc # delete old symlink
sudo ln -s /home/bitcoin/.lightning/${NETWORK}/lightning-rpc /home/bitcoin/.lightning/ sudo ln -s /home/bitcoin/.lightning/${CLNETWORK}/lightning-rpc /home/bitcoin/.lightning/
echo " echo "
# systemd unit for c-lightning-REST for ${CHAIN} # systemd unit for c-lightning-REST for ${CHAIN}