#1000 make reboot after changing keysend

This commit is contained in:
rootzoll 2020-03-21 23:43:01 -07:00
parent d2771098b8
commit 1f8525b4bf
3 changed files with 5 additions and 6 deletions

View File

@ -194,8 +194,6 @@ case $CHOICE in
;;
SERVICES)
/home/admin/00settingsMenuServices.sh
/home/admin/00raspiblitz.sh
exit 0
;;
CLOSEALL)
/home/admin/BBcloseAllChannels.sh

View File

@ -576,10 +576,11 @@ if [ ${check} -eq 1 ]; then choice="on"; fi
if [ "${keysend}" != "${choice}" ]; then
echo "keysend setting changed .."
anychange=1
needsReboot=1
sudo -u admin /home/admin/config.scripts/lnd.keysend.sh ${choice}
dialog --msgbox "Accept Keysend is now ${choice} - LND restarted.\nYou might need to unlock wallet again." 6 46
dialog --msgbox "Accept Keysend is now ${choice} after Reboot." 5 46
else
echo "kesend setting unchanged."
echo "keysend setting unchanged."
fi
if [ ${anychange} -eq 0 ]; then

View File

@ -21,16 +21,16 @@ if [ "${parameter}" == "on" ]; then
sudo sed -i '/lndExtraParameter=.*/d' /mnt/hdd/raspiblitz.conf
echo "lndExtraParameter='--accept-keysend'" >> /mnt/hdd/raspiblitz.conf
sudo systemctl restart lnd
echo "# OK - keysend feature is switched ON"
echo "# LND or RaspiBlitz needs restart"
elif [ "${parameter}" == "off" ]; then
# just remove the parameter from the config file
sudo sed -i '/lndExtraParameter=.*/d' /mnt/hdd/raspiblitz.conf
sudo systemctl restart lnd
echo "# OK - keysend feature is switched OFF"
echo "# LND or RaspiBlitz needs restart"
elif [ "${parameter}" == "status" ]; then