mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
manipulate raspiblitz.conf from python
This commit is contained in:
parent
a0ee2241ee
commit
63900aee87
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ if sys.argv[1] == "on":
|
|||
if forwardingLND:
|
||||
# setting server explicitly on LND if LND port is forwarded
|
||||
print("Setting fixed address for LND with raspiblitz lndAddress")
|
||||
subprocess.call("sudo /home/admin/config.scripts/lnd.setaddress.sh on %s" % (serverdomain), shell=True)
|
||||
file_content = re.sub("lndAddress=.*", "lndAddress='%s'" % (serverdomain), file_content)
|
||||
else:
|
||||
print("No need to set fixed address for LND with raspiblitz lndAddress")
|
||||
file_content = "".join([s for s in file_content.splitlines(True) if s.strip("\r\n")]) + "\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue