update menu with cln

This commit is contained in:
rootzoll
2021-08-03 23:09:45 +02:00
parent 1915baf98a
commit 992b5da49b

View File

@@ -24,32 +24,48 @@ Do you want to start the Update now?
exit 0 exit 0
fi fi
whiptail --title "LND Data Backup" --yes-button "Download Backup" --no-button "Skip" --yesno " if [ "${lightning}" != "" ]; then
Before we start the RaspiBlitz Update process,
its recommended to make a backup of all your LND Data
and download that file to your laptop.
Do you want to download LND Data Backup now? whiptail --title "Lightning Data Backup" --yes-button "Download Backup" --no-button "Skip" --yesno "
Before we start the RaspiBlitz Update process,
its recommended to make a backup of all your Lightning
Channel Data and download that file to your laptop.
Do you want to download Lightning Data Backup now?
" 12 58 " 12 58
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
clear clear
echo "*************************************" echo "*************************************"
echo "* PREPARING LND BACKUP DOWNLOAD" echo "* PREPARING LIGHTNING BACKUP DOWNLOAD"
echo "*************************************" echo "*************************************"
echo "please wait .." echo "please wait .."
sleep 2 sleep 2
/home/admin/config.scripts/lnd.backup.sh lnd-export-gui if [ "${lightning}" == "lnd" ]; then
echo /home/admin/config.scripts/lnd.backup.sh lnd-export-gui
echo "PRESS ENTER to continue once you're done downloading." elif [ "${lightning}" == "cln" ]; then
read key /home/admin/config.scripts/cln.backup.sh cln-export-gui
else else
clear echo "TODO: Implement Data Backup for '${lightning}'"
echo "*************************************" fi
echo "* JUST MAKING BACKUP TO OLD SD CARD" echo
echo "*************************************" echo "PRESS ENTER to continue once you're done downloading."
echo "please wait .." read key
sleep 2 else
/home/admin/config.scripts/lnd.backup.sh lnd-export clear
echo "*************************************"
echo "* JUST MAKING BACKUP TO OLD SD CARD"
echo "*************************************"
echo "please wait .."
sleep 2
if [ "${lightning}" == "lnd" ]; then
/home/admin/config.scripts/lnd.backup.sh lnd-export
elif [ "${lightning}" == "cln" ]; then
/home/admin/config.scripts/cln.backup.sh cln-export
else
echo "TODO: Implement Data Backup for '${lightning}'"
sleep 3
fi
fi
fi fi
whiptail --title "READY TO UPDATE?" --yes-button "START UPDATE" --no-button "Cancel" --yesno "If you start the update: The RaspiBlitz will power down. whiptail --title "READY TO UPDATE?" --yes-button "START UPDATE" --no-button "Cancel" --yesno "If you start the update: The RaspiBlitz will power down.
@@ -68,7 +84,8 @@ and do you WANT TO START UPDATE NOW?
dialog --title " Update Canceled " --msgbox " dialog --title " Update Canceled " --msgbox "
OK. RaspiBlitz will NOT update now. OK. RaspiBlitz will NOT update now.
" 7 39 " 7 39
sudo systemctl start lnd sudo systemctl start lnd 2>/dev/null
sudo systemctl start lightningd 2>/dev/null
exit 0 exit 0
fi fi