change name/alias info

This commit is contained in:
rootzoll 2019-01-14 13:55:43 +01:00
parent fc18d774f1
commit e9b3ba85d7
2 changed files with 4 additions and 8 deletions

2
FAQ.md
View File

@ -46,4 +46,4 @@ But you can try to backup at your own risk. All your Lightning Node data is with
## How do I change the Name/Alias of my lightning node
Exit to terminal (X in manin menu). Then enter `sudo nano /mnt/hdd/lnd/lnd.conf` and change the value of the `alias` parameter. Save the your changes with: `CTRL+O` Then exit the editor with: `CTRL+X` And restart your RaspiBlitz with: `sudo shutdown -r now`
Use the "Change Name/Alias of Node" option in main menu. The RaspiBlitz will make a reboot after this.

View File

@ -35,13 +35,9 @@ echo "chain=${chain}" >> $configFile
# copy logfile to analyse setup
cp $logFile /home/admin/raspiblitz.setup.log
# set the hostname inputed on initDialog
if [ ${#hostname} -gt 0 ]; then
echo "Setting new network hostname '$hostname'"
sudo raspi-config nonint do_hostname ${hostname}
else
echo "WARN: hostname not set"
fi
# set the name of the node
echo "Setting the Name/Alias/Hostname .."
sudo /home/admin/config.scripts/lnd.setname.sh ${hostname}
# mark setup is done (100%)
sudo sed -i "s/^setupStep=.*/setupStep=100/g" /home/admin/raspiblitz.info