mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-30 14:06:08 +02:00
prevent keysend double entries
This commit is contained in:
@@ -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
|
# 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
|
if [ "${lndExtraParameter}" == "--accept-keysend" ]; then
|
||||||
echo "# MIGRATION KEYSEND from lndExtraParameter --> raspiblitz.conf" >> ${logFile}
|
echo "# MIGRATION KEYSEND from lndExtraParameter --> raspiblitz.conf" >> ${logFile}
|
||||||
|
sudo sed -i '/lndKeysend=.*/d' /mnt/hdd/raspiblitz.conf
|
||||||
echo "lndKeysend=on" >> /mnt/hdd/raspiblitz.conf
|
echo "lndKeysend=on" >> /mnt/hdd/raspiblitz.conf
|
||||||
sudo sed -i "/^lndExtraParameter=/d" /mnt/hdd/raspiblitz.conf 2>/dev/null
|
sudo sed -i "/^lndExtraParameter=/d" /mnt/hdd/raspiblitz.conf 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
@@ -19,6 +19,7 @@ if [ "${parameter}" == "on" ]; then
|
|||||||
|
|
||||||
# store to raspiblitz config (delete old line / add new)
|
# store to raspiblitz config (delete old line / add new)
|
||||||
sudo sed -i '/lndExtraParameter=.*/d' /mnt/hdd/raspiblitz.conf
|
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 "lndKeysend=on" >> /mnt/hdd/raspiblitz.conf
|
||||||
|
|
||||||
echo "# OK - keysend feature is switched ON"
|
echo "# OK - keysend feature is switched ON"
|
||||||
|
Reference in New Issue
Block a user