mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 02:09:15 +01:00
parent
df119a9263
commit
21afe5b151
@ -110,30 +110,26 @@ do
|
||||
|
||||
publicIPChanged=$(/home/admin/config.scripts/internet.sh update-publicip | grep -c 'ip_changed=1')
|
||||
|
||||
# check if changed
|
||||
elif [ ${publicIPChanged} -get 0 ]; then
|
||||
# check if changed
|
||||
elif [ ${publicIPChanged} -get 0 ]; then
|
||||
|
||||
# refresh data
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
|
||||
# only restart LND if auto-unlock is activated
|
||||
if [ "${autoUnlock}" = "on" ]; then
|
||||
echo "restart LND with to pickup up new publiIP"
|
||||
sudo systemctl stop lnd
|
||||
sudo systemctl start lnd
|
||||
else
|
||||
echo "new publicIP but no LND restart because no auto-unlock"
|
||||
fi
|
||||
|
||||
# trigger update if dnyamic domain (if set)
|
||||
updateDynDomain=1
|
||||
# refresh data
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
|
||||
# only restart LND if auto-unlock is activated
|
||||
if [ "${autoUnlock}" = "on" ]; then
|
||||
echo "restart LND with to pickup up new publiIP"
|
||||
sudo systemctl stop lnd
|
||||
sudo systemctl start lnd
|
||||
else
|
||||
echo "public IP has not changed"
|
||||
echo "new publicIP but no LND restart because no auto-unlock"
|
||||
fi
|
||||
|
||||
# trigger update if dnyamic domain (if set)
|
||||
updateDynDomain=1
|
||||
|
||||
else
|
||||
echo "skip - because setup is still running"
|
||||
echo "public IP has not changed"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user