mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-10 12:49:33 +02:00
moved install position of getpubliip
This commit is contained in:
parent
c0738d87bf
commit
eaee3e1538
@ -9,17 +9,6 @@ network=`cat .network`
|
||||
# and re-enters the setup process at the correct spot
|
||||
# in case it got interrupted
|
||||
|
||||
getpublicipExists=$(sudo ls /usr/local/bin/getpublicip.sh 2>/dev/null | grep "getpublicip.sh" -c)
|
||||
if [ ${getpublicipExists} -eq 0 ]; then
|
||||
echo "*** Installing getPublic ip script and service *** "
|
||||
sudo cp ./assets/getpublicip.sh /usr/local/bin/getpublicip.sh
|
||||
sudo chmod +x /usr/local/bin/getpublicip.sh
|
||||
sudo cp ./assets/getpublicip.service /etc/systemd/system/getpublicip.service
|
||||
sudo systemctl enable getpublicip
|
||||
sudo systemctl start getpublicip
|
||||
echo ""
|
||||
fi
|
||||
|
||||
# check if lightning is running
|
||||
lndRunning=$(systemctl status lnd.service | grep -c running)
|
||||
if [ ${lndRunning} -eq 1 ]; then
|
||||
|
@ -78,4 +78,16 @@ sed -i "s/^${network}d.rpcpass=.*/${network}d.rpcpass=${result}/g" /home/admin/a
|
||||
|
||||
# success info dialog
|
||||
dialog --backtitle "RaspiBlitz - SetUP" --msgbox "OK - RPC password changed to '$result'\n\nNow starting the Setup of your RaspiBlitz." 7 52
|
||||
clear
|
||||
clear
|
||||
|
||||
# init get publicip service
|
||||
getpublicipExists=$(sudo ls /usr/local/bin/getpublicip.sh 2>/dev/null | grep "getpublicip.sh" -c)
|
||||
if [ ${getpublicipExists} -eq 0 ]; then
|
||||
echo "*** Installing getPublic ip script and service *** "
|
||||
sudo cp ./assets/getpublicip.sh /usr/local/bin/getpublicip.sh
|
||||
sudo chmod +x /usr/local/bin/getpublicip.sh
|
||||
sudo cp ./assets/getpublicip.service /etc/systemd/system/getpublicip.service
|
||||
sudo systemctl enable getpublicip
|
||||
sudo systemctl start getpublicip
|
||||
echo ""
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user