mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-25 20:59:21 +01:00
ydns-simple: tabs to spaces & break long lines
This commit is contained in:
parent
fc9446deff
commit
f6d68e8f1e
@ -34,7 +34,8 @@ if [ "$WAN_IP4" = "$OLD_WAN_IP4" ]; then
|
||||
else
|
||||
echo $WAN_IP4 > $HOME/.wan_ip4-ydns.txt
|
||||
echo "Updating DNS to $WAN_IP4"
|
||||
curl -4 --basic -u"$USEREMAIL:$PASSWORD" --silent https://ydns.eu/api/v1/update/?host=$HOSTNAME
|
||||
curl -4 --basic -u "$USEREMAIL:$PASSWORD" --silent \
|
||||
https://ydns.eu/api/v1/update/?host=$HOSTNAME
|
||||
fi
|
||||
|
||||
# Update IPv6
|
||||
@ -43,5 +44,6 @@ if [ "$WAN_IP6" = "$OLD_WAN_IP6" ]; then
|
||||
else
|
||||
echo $WAN_IP6 > $HOME/.wan_ip6-ydns.txt
|
||||
echo "Updating DNS to $WAN_IP6"
|
||||
curl -6 --basic -u"$USEREMAIL:$PASSWORD" --silent https://ydns.eu/api/v1/update/?host=$HOSTNAME
|
||||
curl -6 --basic -u "$USEREMAIL:$PASSWORD" --silent \
|
||||
https://ydns.eu/api/v1/update/?host=$HOSTNAME
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user