mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
fix replacing dynUpdateUrl parameter
This commit is contained in:
parent
e73372d6ae
commit
fe834f20c4
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
# 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
|
||||
echo "dynUpdateUrl='${dynUpdateUrl}'" >> ${configFile}
|
||||
grep -v "dynUpdateUrl" /mnt/hdd/raspiblitz.conf > /mnt/hdd/raspiblitz.conf.new
|
||||
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
|
||||
|
||||
echo "changing lnd.conf"
|
||||
|
|
Loading…
Add table
Reference in a new issue