Added settings file
This commit is contained in:
parent
2cf0aa3afe
commit
c3abe5d2be
2 changed files with 6 additions and 1 deletions
4
lp-ddns/etc/lp-dyndns/settings.conf
Normal file
4
lp-ddns/etc/lp-dyndns/settings.conf
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
RECORDID="28378"
|
||||
PASSWORD="pass123"
|
||||
DOMAIN="test.jonathanselea.se"
|
||||
|
||||
|
|
@ -9,7 +9,8 @@ set -e
|
|||
|
||||
|
||||
# DO NOT MODIFY #
|
||||
IP="$(curl -s ipv4.is)"
|
||||
IP="$(curl --connect-timeout 10 -s ipv4.is || curl --connect-timeout 10 -s ifconfig.me)"
|
||||
#IP="$(curl --config /etc/lp-dyndns/curlrc)"
|
||||
CURRENTIP="$(dig ${DOMAIN} +short)"
|
||||
APIURL="https://freedns.linux.pizza/api/v1/remote/updatepw?record=${RECORDID}&password=${PASSWORD}&content=${IP}"
|
||||
# Making stuff fancy
|
||||
|
|
|
|||
Loading…
Reference in a new issue