Added settings file

This commit is contained in:
Jonathan Sélea 2019-12-04 13:44:18 +00:00
parent 2cf0aa3afe
commit c3abe5d2be
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,4 @@
RECORDID="28378"
PASSWORD="pass123"
DOMAIN="test.jonathanselea.se"

View file

@ -9,7 +9,8 @@ set -e
# DO NOT MODIFY # # 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)" CURRENTIP="$(dig ${DOMAIN} +short)"
APIURL="https://freedns.linux.pizza/api/v1/remote/updatepw?record=${RECORDID}&password=${PASSWORD}&content=${IP}" APIURL="https://freedns.linux.pizza/api/v1/remote/updatepw?record=${RECORDID}&password=${PASSWORD}&content=${IP}"
# Making stuff fancy # Making stuff fancy