prevent keysend double entries

This commit is contained in:
rootzoll 2021-09-20 19:08:29 +02:00
parent a90959d89b
commit 6968965dee
2 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,7 @@ if [ "${lightning}" == "lnd" ]; then
# convert old keysend by lndExtraParameter to raspiblitz.conf setting (will be enforced by lnd.check.sh prestart) since 1.7.1
if [ "${lndExtraParameter}" == "--accept-keysend" ]; then
echo "# MIGRATION KEYSEND from lndExtraParameter --> raspiblitz.conf" >> ${logFile}
sudo sed -i '/lndKeysend=.*/d' /mnt/hdd/raspiblitz.conf
echo "lndKeysend=on" >> /mnt/hdd/raspiblitz.conf
sudo sed -i "/^lndExtraParameter=/d" /mnt/hdd/raspiblitz.conf 2>/dev/null
fi

View File

@ -19,6 +19,7 @@ if [ "${parameter}" == "on" ]; then
# store to raspiblitz config (delete old line / add new)
sudo sed -i '/lndExtraParameter=.*/d' /mnt/hdd/raspiblitz.conf
sudo sed -i '/lndKeysend=.*/d' /mnt/hdd/raspiblitz.conf
echo "lndKeysend=on" >> /mnt/hdd/raspiblitz.conf
echo "# OK - keysend feature is switched ON"