diff --git a/home.admin/_bootstrap.provision.sh b/home.admin/_bootstrap.provision.sh index 8b9cfef..9c49b5e 100644 --- a/home.admin/_bootstrap.provision.sh +++ b/home.admin/_bootstrap.provision.sh @@ -165,7 +165,9 @@ fi # CUSTOM PORT echo "Provisioning LND Port" >> ${logFile} -lndPort=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep "^listen=*" | cut -f2 -d':') +if [ ${#lndPort} -eq 0 ]; then + lndPort=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep "^listen=*" | cut -f2 -d':') +fi if [ ${#lndPort} -gt 0 ]; then if [ "${lndPort}" != "9735" ]; then echo "User is running custom LND port: ${lndPort}" >> ${logFile} diff --git a/home.admin/config.scripts/internet.sshtunnel.py b/home.admin/config.scripts/internet.sshtunnel.py index a7ebc9d..e96b6df 100755 --- a/home.admin/config.scripts/internet.sshtunnel.py +++ b/home.admin/config.scripts/internet.sshtunnel.py @@ -103,7 +103,7 @@ if sys.argv[1] == "on": forwardingLND = True if port_internal != port_external: print("FAIL: When tunneling your local LND port '%s' it needs to be the same on the external server, but is '%s'" % (LNDPORT,port_external)) - print("Try again by using the same port. If you cant change the external port, change local LND port with: /home/config.scripts/lnd.setport.sh") + print("Try again by using the same port. If you cant change the external port, change local LND port with: /home/admin/config.scripts/lnd.setport.sh") sys.exit(1) ssh_ports = ssh_ports + "\"%s\" " % (sys.argv[i])