Browse Source

fix naming bug #26

#146
rootzoll 7 years ago
parent
commit
e59068592f
  1. 5
      home.admin/20initDialog.sh
  2. 8
      home.admin/70initLND.sh
  3. 0
      home.admin/assets/lnd.bitcoin.conf

5
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.

8
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"

0
home.admin/assets/lnd.conf → home.admin/assets/lnd.bitcoin.conf

Loading…
Cancel
Save