From 74ebb93d02232822f1796131ca53d7ea37fbf58e Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Wed, 13 May 2020 20:05:04 -0500 Subject: [PATCH] Consolidate lnd config generation --- rootfs/standard/usr/bin/mynode_gen_lnd_config.sh | 5 +++++ rootfs/standard/usr/bin/mynode_startup.sh | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh b/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh index d151ad5c..f1bc1ca3 100755 --- a/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh +++ b/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh @@ -1,5 +1,10 @@ #!/bin/bash +# Setup Initial LND Node Name +if [ ! -f /mnt/hdd/mynode/settings/.lndalias ]; then + echo "mynodebtc.com [myNode]" > /mnt/hdd/mynode/settings/.lndalias +fi + # Generate LND Config if [ -f /mnt/hdd/mynode/settings/lnd_custom.conf ]; then # Use Custom Config diff --git a/rootfs/standard/usr/bin/mynode_startup.sh b/rootfs/standard/usr/bin/mynode_startup.sh index eaa1cee3..85c6f2b1 100755 --- a/rootfs/standard/usr/bin/mynode_startup.sh +++ b/rootfs/standard/usr/bin/mynode_startup.sh @@ -194,11 +194,6 @@ do chmod 600 /mnt/hdd/mynode/settings/.btcrpcpw done -# Setup LND Node Name -if [ ! -f /mnt/hdd/mynode/settings/.lndalias ]; then - echo "mynodebtc.com [myNode]" > /mnt/hdd/mynode/settings/.lndalias -fi - # Default QuickSync if [ ! -f /mnt/hdd/mynode/settings/.setquicksyncdefault ]; then # Default x86 to no QuickSync