mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-21 14:11:06 +02:00
put new values to the right place
This commit is contained in:
@@ -62,11 +62,11 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
# make sure config values exits
|
# make sure config values exits
|
||||||
exists=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep -c 'restlisten=')
|
exists=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep -c 'restlisten=')
|
||||||
if [ ${exists} -eq 0 ]; then
|
if [ ${exists} -eq 0 ]; then
|
||||||
sudo sh -c "echo \"restlisten=\" >> /mnt/hdd/lnd/lnd.conf"
|
sudo sed -n -i 'p;4a restlisten=' /mnt/hdd/lnd/lnd.conf
|
||||||
fi
|
fi
|
||||||
exists=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep -c 'tlsextraip')
|
exists=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep -c 'tlsextraip')
|
||||||
if [ ${exists} -eq 0 ]; then
|
if [ ${exists} -eq 0 ]; then
|
||||||
sudo sh -c "echo \"tlsextraip=\" >> /mnt/hdd/lnd/lnd.conf"
|
sudo sed -n -i 'p;5a tlsextraip=' /mnt/hdd/lnd/lnd.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set needed config values
|
# set needed config values
|
||||||
|
Reference in New Issue
Block a user