mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 12:06:36 +02:00
fix naming bug #26
This commit is contained in:
@@ -16,12 +16,11 @@ while [ ${#result} -eq 0 ]
|
|||||||
done
|
done
|
||||||
|
|
||||||
# set lightning alias
|
# set lightning alias
|
||||||
sed -i "7s/.*/alias=$result/" ./assests/lnd.conf
|
sed -i "7s/.*/alias=${result}/" /home/admin/assets/lnd.${network}.conf
|
||||||
sed -i "7s/.*/alias=$result/" ./assests/lnd.litecoin.conf
|
|
||||||
|
|
||||||
# store hostname for later - to be set right before the next reboot
|
# 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
|
# 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
|
# show password info dialog
|
||||||
dialog --backtitle "RaspiBlitz - Setup" --msgbox "RaspiBlitz uses 4 different passwords.
|
dialog --backtitle "RaspiBlitz - Setup" --msgbox "RaspiBlitz uses 4 different passwords.
|
||||||
|
@@ -49,13 +49,7 @@ echo ""
|
|||||||
echo "*** LND Config ***"
|
echo "*** LND Config ***"
|
||||||
configExists=$( sudo ls /mnt/hdd/lnd/ | grep -c lnd.conf )
|
configExists=$( sudo ls /mnt/hdd/lnd/ | grep -c lnd.conf )
|
||||||
if [ ${configExists} -eq 0 ]; then
|
if [ ${configExists} -eq 0 ]; then
|
||||||
if [ "$network" = "litecoin" ]; then
|
sudo cp /home/admin/assets/lnd.${network}.conf /mnt/hdd/lnd/lnd.conf
|
||||||
# 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 chown bitcoin:bitcoin /mnt/hdd/lnd/lnd.conf
|
sudo chown bitcoin:bitcoin /mnt/hdd/lnd/lnd.conf
|
||||||
if [ -d /home/bitcoin/.lnd ]; then
|
if [ -d /home/bitcoin/.lnd ]; then
|
||||||
echo "OK - LND config written"
|
echo "OK - LND config written"
|
||||||
|
Reference in New Issue
Block a user