mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
put set name to another position
This commit is contained in:
@@ -102,6 +102,7 @@ echo "*** Init LND Service & Start ***"
|
|||||||
lndRunning=$(sudo systemctl status lnd.service 2>/dev/null | grep -c running)
|
lndRunning=$(sudo systemctl status lnd.service 2>/dev/null | grep -c running)
|
||||||
if [ ${lndRunning} -eq 0 ]; then
|
if [ ${lndRunning} -eq 0 ]; then
|
||||||
|
|
||||||
|
echo "stopping lnd .."
|
||||||
sudo systemctl stop lnd 2>/dev/null
|
sudo systemctl stop lnd 2>/dev/null
|
||||||
sudo systemctl disable lnd 2>/dev/null
|
sudo systemctl disable lnd 2>/dev/null
|
||||||
|
|
||||||
@@ -496,9 +497,4 @@ You may now give it
|
|||||||
extra time to rescan.
|
extra time to rescan.
|
||||||
" 10 25
|
" 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
|
fi
|
@@ -124,10 +124,12 @@ case $CHOICE in
|
|||||||
echo "processing ..."
|
echo "processing ..."
|
||||||
sleep 3
|
sleep 3
|
||||||
done
|
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 systemctl stop lnd
|
||||||
sudo rm -r /mnt/hdd/lnd
|
sudo rm -r /mnt/hdd/lnd
|
||||||
/home/admin/70initLND.sh
|
/home/admin/70initLND.sh
|
||||||
|
Reference in New Issue
Block a user