mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-23 22:47:03 +01:00
fix naming bug #26
This commit is contained in:
parent
1d010790c3
commit
e59068592f
3 changed files with 3 additions and 10 deletions
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue