From e59068592f23fd948675c90a4ca85cefca2e1e60 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Tue, 31 Jul 2018 20:13:08 +0200 Subject: [PATCH] fix naming bug #26 --- home.admin/20initDialog.sh | 5 ++--- home.admin/70initLND.sh | 8 +------- home.admin/assets/{lnd.conf => lnd.bitcoin.conf} | 0 3 files changed, 3 insertions(+), 10 deletions(-) rename home.admin/assets/{lnd.conf => lnd.bitcoin.conf} (100%) diff --git a/home.admin/20initDialog.sh b/home.admin/20initDialog.sh index e1d9943..071d9a2 100755 --- a/home.admin/20initDialog.sh +++ b/home.admin/20initDialog.sh @@ -16,12 +16,11 @@ while [ ${#result} -eq 0 ] done # set lightning alias -sed -i "7s/.*/alias=$result/" ./assests/lnd.conf -sed -i "7s/.*/alias=$result/" ./assests/lnd.litecoin.conf +sed -i "7s/.*/alias=${result}/" /home/admin/assets/lnd.${network}.conf # store hostname for later - to be set right before the next reboot # work around - because without a reboot the hostname seems not updates in the whole system -echo $result >> /home/admin/.hostname +echo $result > /home/admin/.hostname # show password info dialog dialog --backtitle "RaspiBlitz - Setup" --msgbox "RaspiBlitz uses 4 different passwords. diff --git a/home.admin/70initLND.sh b/home.admin/70initLND.sh index dd266c0..3930fb8 100755 --- a/home.admin/70initLND.sh +++ b/home.admin/70initLND.sh @@ -49,13 +49,7 @@ echo "" echo "*** LND Config ***" configExists=$( sudo ls /mnt/hdd/lnd/ | grep -c lnd.conf ) if [ ${configExists} -eq 0 ]; then - if [ "$network" = "litecoin" ]; then - # litecoin - sudo cp /home/admin/assets/lnd.litecoin.conf /mnt/hdd/lnd/lnd.conf - else - # bitcoin - sudo cp /home/admin/assets/lnd.conf /mnt/hdd/lnd/lnd.conf - fi + sudo cp /home/admin/assets/lnd.${network}.conf /mnt/hdd/lnd/lnd.conf sudo chown bitcoin:bitcoin /mnt/hdd/lnd/lnd.conf if [ -d /home/bitcoin/.lnd ]; then echo "OK - LND config written" diff --git a/home.admin/assets/lnd.conf b/home.admin/assets/lnd.bitcoin.conf similarity index 100% rename from home.admin/assets/lnd.conf rename to home.admin/assets/lnd.bitcoin.conf