put set name to another position

This commit is contained in:
rootzoll 2020-04-18 01:23:36 +02:00
parent 98e385e7fd
commit 74725aeb7c
2 changed files with 6 additions and 8 deletions

View File

@ -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

View File

@ -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