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