mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-14 06:39:24 +02:00
prevent keysend double entries
This commit is contained in:
parent
a90959d89b
commit
6968965dee
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user