From f1e42d81a63418011d2e434d1864f4cfe71cb0b7 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Mon, 8 Apr 2019 02:10:25 +0100 Subject: [PATCH] Added Link to YouTube video --- FAQ.md | 4 +++- home.admin/config.scripts/internet.sshtunnel.py | 5 ++--- home.admin/config.scripts/lnd.setaddress.sh | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/FAQ.md b/FAQ.md index 4c495d5..14506b9 100644 --- a/FAQ.md +++ b/FAQ.md @@ -25,7 +25,9 @@ Instructions on how to update see FAQ info below. For update you dont need to close any channels, remove funding or download the blockchain again. -Simply [Ddwnload the new RaspiBlitz SD card image](https://github.com/rootzoll/raspiblitz#installing-the-software) to your laptop and have an sd card writer ready. Then login into your RaspiBlitz with SSH and: +Here is a YouTube video tutorial on how to update: https://www.youtube.com/watch?v=Xvn0WQfHUdI + +Simply [Download the new RaspiBlitz SD card image](https://github.com/rootzoll/raspiblitz#installing-the-software) to your laptop and have an sd card writer ready. Then login into your RaspiBlitz with SSH and: - main menu > OFF - remove power diff --git a/home.admin/config.scripts/internet.sshtunnel.py b/home.admin/config.scripts/internet.sshtunnel.py index 12b962f..0854f7c 100755 --- a/home.admin/config.scripts/internet.sshtunnel.py +++ b/home.admin/config.scripts/internet.sshtunnel.py @@ -39,11 +39,8 @@ WantedBy=multi-user.target # get LND port form lnd.conf LNDPORT = subprocess.getoutput("sudo cat /mnt/hdd/lnd/lnd.conf | grep '^listen=*' | cut -f2 -d':'") -print(len(LNDPORT)) -print(LNDPORT) if len(LNDPORT) == 0: LNDPORT="9735" -print(LNDPORT) # # RESTORE = SWITCHING ON with restore flag on @@ -168,6 +165,8 @@ if sys.argv[1] == "on": # setting server explicitly on LND if LND port is forwarded print("Setting server domain for LND Port") subprocess.call("sudo /home/admin/config.scripts/lnd.setaddress.sh on %s" % (serverdomain), shell=True) + else: + print("No need to set fixed domain forwarding") file_content = "".join([s for s in file_content.splitlines(True) if s.strip("\r\n")]) + "\n" print(file_content) with open("/mnt/hdd/raspiblitz.conf", "w") as text_file: diff --git a/home.admin/config.scripts/lnd.setaddress.sh b/home.admin/config.scripts/lnd.setaddress.sh index 0487394..182306c 100755 --- a/home.admin/config.scripts/lnd.setaddress.sh +++ b/home.admin/config.scripts/lnd.setaddress.sh @@ -66,7 +66,7 @@ if [ "${mode}" = "off" ]; then sudo systemctl stop lnd 2>/dev/null # setting value in raspi blitz config - sudo sed -i "s/^lndAddress=.*/lndAddress=/g" /mnt/hdd/raspiblitz.conf + sudo sed -i "s/^lndAddress=.*/lndAddress=''/g" /mnt/hdd/raspiblitz.conf echo "changing lnd.conf"