|
@ -94,8 +94,11 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then |
|
|
|
|
|
|
|
|
# setting dynUpdateUrl is a bit cpmplicated because value can contain chars that break sed replacement |
|
|
# setting dynUpdateUrl is a bit cpmplicated because value can contain chars that break sed replacement |
|
|
# so first remove dynUpdateUrl from config and then add fresh as new line at the end |
|
|
# so first remove dynUpdateUrl from config and then add fresh as new line at the end |
|
|
grep -v "dynUpdateUrl" /mnt/hdd/raspiblitz.conf > /mnt/hdd/raspiblitz.conf |
|
|
grep -v "dynUpdateUrl" /mnt/hdd/raspiblitz.conf > /mnt/hdd/raspiblitz.conf.new |
|
|
echo "dynUpdateUrl='${dynUpdateUrl}'" >> ${configFile} |
|
|
echo "dynUpdateUrl='${dynUpdateUrl}'" >> /mnt/hdd/raspiblitz.conf.new |
|
|
|
|
|
sudo rm /mnt/hdd/raspiblitz.conf |
|
|
|
|
|
sudo mv /mnt/hdd/raspiblitz.conf.new /mnt/hdd/raspiblitz.conf |
|
|
|
|
|
sudo chmod 777 /mnt/hdd/raspiblitz.conf |
|
|
#sudo sed -i "s/^dynUpdateUrl=.*/dynUpdateUrl='${dynUpdateUrl}'/g" /mnt/hdd/raspiblitz.conf |
|
|
#sudo sed -i "s/^dynUpdateUrl=.*/dynUpdateUrl='${dynUpdateUrl}'/g" /mnt/hdd/raspiblitz.conf |
|
|
|
|
|
|
|
|
echo "changing lnd.conf" |
|
|
echo "changing lnd.conf" |
|
|