mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-14 06:39:24 +02:00
put set name to another position
This commit is contained in:
parent
98e385e7fd
commit
74725aeb7c
@ -102,6 +102,7 @@ echo "*** Init LND Service & Start ***"
|
||||
lndRunning=$(sudo systemctl status lnd.service 2>/dev/null | grep -c running)
|
||||
if [ ${lndRunning} -eq 0 ]; then
|
||||
|
||||
echo "stopping lnd .."
|
||||
sudo systemctl stop lnd 2>/dev/null
|
||||
sudo systemctl disable lnd 2>/dev/null
|
||||
|
||||
@ -496,9 +497,4 @@ You may now give it
|
||||
extra time to rescan.
|
||||
" 10 25
|
||||
|
||||
# make sure host is named like in the raspiblitz config
|
||||
echo "Setting the Name/Alias/Hostname .."
|
||||
sudo /home/admin/config.scripts/lnd.setname.sh ${hostname}
|
||||
clear
|
||||
|
||||
fi
|
@ -124,10 +124,12 @@ case $CHOICE in
|
||||
echo "processing ..."
|
||||
sleep 3
|
||||
done
|
||||
# prepare new name
|
||||
sudo sed -i "s/^alias=.*/alias=${result}/g" /home/admin/assets/lnd.${network}.conf
|
||||
sudo sed -i "s/^hostname=.*/hostname=${result}/g" /mnt/hdd/raspiblitz.conf
|
||||
|
||||
# make sure host is named like in the raspiblitz config
|
||||
echo "Setting the Name/Alias/Hostname .."
|
||||
sudo /home/admin/config.scripts/lnd.setname.sh ${result}
|
||||
|
||||
echo "stopping lnd ..."
|
||||
sudo systemctl stop lnd
|
||||
sudo rm -r /mnt/hdd/lnd
|
||||
/home/admin/70initLND.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user