raspiblitz/home.admin/95finalSetup.sh

41 lines
999 B
Bash
Raw Normal View History

2018-12-06 17:39:06 +01:00
#!/bin/bash
echo ""
# load setup config
source /home/admin/raspiblitz.info
2019-04-16 03:06:58 +01:00
# in case the config already exists
source /mnt/hdd/raspiblitz.conf 2>/dev/null
2018-12-06 17:39:06 +01:00
# load version
source /home/admin/_version.info
# show info to user
sudo sed -i "s/^state=.*/state=reboot/g" /home/admin/raspiblitz.info
2018-12-06 17:39:06 +01:00
dialog --backtitle "RaspiBlitz - Setup" --title " RaspiBlitz Setup is done :) " --msgbox "
2018-12-10 18:01:38 +01:00
After reboot RaspiBlitz
needs to be unlocked and
sync with the network.
2018-12-06 17:39:06 +01:00
2018-12-10 18:01:38 +01:00
Press OK for a final reboot.
2018-12-06 17:39:06 +01:00
" 10 42
# let migration/init script do the rest
2018-12-11 19:17:35 +01:00
/home/admin/_bootstrap.migration.sh
2018-12-11 02:04:55 +01:00
2018-12-10 16:04:48 +01:00
# copy logfile to analyse setup
cp $logFile /home/admin/raspiblitz.setup.log
2019-01-14 13:55:43 +01:00
# set the name of the node
echo "Setting the Name/Alias/Hostname .."
sudo /home/admin/config.scripts/lnd.setname.sh ${hostname}
2018-12-06 17:39:06 +01:00
# mark setup is done
2018-12-06 17:39:06 +01:00
sudo sed -i "s/^setupStep=.*/setupStep=100/g" /home/admin/raspiblitz.info
clear
2018-12-10 20:05:58 +01:00
echo "Setup done. Rebooting now."
2019-01-28 16:55:51 +01:00
sudo -u bitcoin ${network}-cli stop
2018-12-10 20:05:58 +01:00
sleep 3
2018-12-10 16:09:45 +01:00
sudo shutdown -r now