mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-22 14:34:25 +02:00
Merge pull request #916 from openoms/1.4services
services: show info only on installation + recover on bootsrap
This commit is contained in:
commit
244c921cdd
@ -125,10 +125,12 @@ if [ "${loop}" != "${choice}" ]; then
|
||||
echo "Loop Setting changed .."
|
||||
anychange=1
|
||||
sudo /home/admin/config.scripts/bonus.loop.sh ${choice}
|
||||
whiptail --title " Installed the Lightning Loop Service (loopd) " --msgbox "\
|
||||
if [ "${choice}" = "on" ]; then
|
||||
whiptail --title " Installed the Lightning Loop Service (loopd) " --msgbox "\
|
||||
Usage and examples: https://github.com/lightninglabs/loop#loop-out-swaps\n
|
||||
Start from the command line by typing 'loop' to see the options.
|
||||
" 10 75
|
||||
" 10 75
|
||||
fi
|
||||
needsReboot=0
|
||||
else
|
||||
echo "Loop Setting unchanged."
|
||||
@ -524,12 +526,14 @@ if [ "${lndmanage}" != "${choice}" ]; then
|
||||
echo "lndmanage Setting changed .."
|
||||
anychange=1
|
||||
sudo /home/admin/config.scripts/bonus.lndmanage.sh ${choice}
|
||||
whiptail --title " Installed lndmanage " --msgbox "\
|
||||
if [ "${choice}" = "on" ]; then
|
||||
whiptail --title " Installed lndmanage " --msgbox "\
|
||||
Usage: https://github.com/bitromortac/lndmanage/blob/master/README.md\n
|
||||
Start with the line:
|
||||
'cd lndmanage & source venv/bin/activate & lndmanage'\n
|
||||
To exit: type 'deactivate' and press ENTER
|
||||
" 12 75
|
||||
" 12 75
|
||||
fi
|
||||
needsReboot=0
|
||||
else
|
||||
echo "lndmanage setting unchanged."
|
||||
|
@ -31,6 +31,15 @@ sudo systemctl enable ${network}d.service
|
||||
if [ "${rtlWebinterface}" = "on" ]; then
|
||||
sudo systemctl enable RTL
|
||||
fi
|
||||
if [ "${loop}" = "on" ]; then
|
||||
sudo systemctl enable loopd
|
||||
fi
|
||||
if [ "${BTCRPCexplorer}" = "on" ]; then
|
||||
sudo systemctl enable btc-rpc-explorer
|
||||
fi
|
||||
if [ "${ElectRS}" = "on" ]; then
|
||||
sudo systemctl enable electrs
|
||||
fi
|
||||
|
||||
# remove flag that freshly recovered
|
||||
sudo rm /home/admin/raspiblitz.recover.info
|
||||
|
@ -170,6 +170,53 @@ else
|
||||
echo "Provisioning RTL - keep default" >> ${logFile}
|
||||
fi
|
||||
|
||||
#LOOP
|
||||
if [ "${loop}" = "on" ]; then
|
||||
echo "Provisioning Lightning Loop - run config script" >> ${logFile}
|
||||
sudo sed -i "s/^message=.*/message='Setup Lightning Loop'/g" ${infoFile}
|
||||
/home/admin/config.scripts/bonus.loop.sh on >> ${logFile} 2>&1
|
||||
sudo systemctl disable loopd # will get enabled after recover dialog
|
||||
else
|
||||
echo "Provisioning Lightning Loop - keep default" >> ${logFile}
|
||||
fi
|
||||
|
||||
#BTC RPC EXPLORER
|
||||
if [ "${BTCRPCexplorer}" = "on" ]; then
|
||||
echo "Provisioning BTCRPCexplorer - run config script" >> ${logFile}
|
||||
sudo sed -i "s/^message=.*/message='Setup BTCRPCexplorer (takes time)'/g" ${infoFile}
|
||||
/home/admin/config.scripts/bonus.btc-rpc-explorer.sh on >> ${logFile} 2>&1
|
||||
sudo systemctl disable btc-rpc-explorer # will get enabled after recover dialog
|
||||
else
|
||||
echo "Provisioning BTCRPCexplorer - keep default" >> ${logFile}
|
||||
fi
|
||||
|
||||
#ELECTRS
|
||||
if [ "${ElectRS}" = "on" ]; then
|
||||
echo "Provisioning ElectRS - run config script" >> ${logFile}
|
||||
sudo sed -i "s/^message=.*/message='Setup ElectRS (takes time)'/g" ${infoFile}
|
||||
/home/admin/config.scripts/bonus.electrs.sh on >> ${logFile} 2>&1
|
||||
sudo systemctl disable electrs # will get enabled after recover dialog
|
||||
else
|
||||
echo "Provisioning ElectRS - keep default" >> ${logFile}
|
||||
fi
|
||||
|
||||
# BTCPAYSERVER - not restored due to need for domain name and port forwarding
|
||||
if [ "${BTCPayServer}" = "on" ]; then
|
||||
echo "Setting BTCPayServer to be off - will need to be reinstalled from the menu again" >> ${logFile}
|
||||
sudo sed -i "s/^BTCPayServer=.*/BTCPayServer=off/g" /mnt/hdd/raspiblitz.conf
|
||||
else
|
||||
echo "Provisioning BTCPayServer - keep default" >> ${logFile}
|
||||
fi
|
||||
|
||||
# LNDMANAGE
|
||||
if [ "${lndmanage}" = "on" ]; then
|
||||
echo "Provisioning lndmanage - run config script" >> ${logFile}
|
||||
sudo sed -i "s/^message=.*/message='Setup lndmanage '/g" ${infoFile}
|
||||
/home/admin/config.scripts/bonus.lndmanage.sh on >> ${logFile} 2>&1
|
||||
else
|
||||
echo "Provisioning ElectRS - keep default" >> ${logFile}
|
||||
fi
|
||||
|
||||
# CUSTOM PORT
|
||||
echo "Provisioning LND Port" >> ${logFile}
|
||||
if [ ${#lndPort} -eq 0 ]; then
|
||||
@ -241,6 +288,8 @@ else
|
||||
echo "Provisioning UPS - not active" >> ${logFile}
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# replay backup LND conf & tlscerts
|
||||
# https://github.com/rootzoll/raspiblitz/issues/324
|
||||
echo "" >> ${logFile}
|
||||
|
Loading…
x
Reference in New Issue
Block a user