Added debian/control|conffiles
This commit is contained in:
parent
c3abe5d2be
commit
9f2af8378c
4 changed files with 26 additions and 9 deletions
1
debian/conffiles
vendored
Normal file
1
debian/conffiles
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/lp-dyndns/settings.conf
|
||||||
9
debian/control
vendored
Normal file
9
debian/control
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
Package: lp-ddns
|
||||||
|
Version: 0.1a
|
||||||
|
Section: custom
|
||||||
|
Priority: optional
|
||||||
|
Architecture: all
|
||||||
|
Essential: no
|
||||||
|
Installed-Size: 16
|
||||||
|
Maintainer: Jonathan Sélea
|
||||||
|
Description: Tool for managing Dynamic DNS toghether with FreeDNS.linux.pizza
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
RECORDID="28378"
|
# Examples:
|
||||||
PASSWORD="pass123"
|
# RECORDID="235890
|
||||||
DOMAIN="test.jonathanselea.se"
|
# PASSWORD="verystrongpassword"
|
||||||
|
# DOMAIN="sub.domain.tld"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
RECORDID=""
|
||||||
|
PASSWORD=""
|
||||||
|
DOMAIN=""
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ set -e
|
||||||
|
|
||||||
. /etc/lp-dyndns/settings.conf
|
. /etc/lp-dyndns/settings.conf
|
||||||
|
|
||||||
#RECORDID="28378"
|
#RECORDID="11111"
|
||||||
#PASSWORD="pass123"
|
#PASSWORD="passss"
|
||||||
#DOMAIN="test.jonathanselea.se"
|
#DOMAIN="sub.domain.tld"
|
||||||
|
|
||||||
|
|
||||||
# DO NOT MODIFY #
|
# DO NOT MODIFY #
|
||||||
|
|
@ -24,13 +24,13 @@ YELLOW='\033[1;33m'
|
||||||
# END
|
# END
|
||||||
|
|
||||||
|
|
||||||
echo -e "The current external IP is ${YELLOW}${IP}${NC}"
|
echo -e "The current external IP is ${YELLOW}${IP}${NC}" | logger
|
||||||
|
|
||||||
if [ "${IP}" == "${CURRENTIP}" ];
|
if [ "${IP}" == "${CURRENTIP}" ];
|
||||||
then
|
then
|
||||||
echo -e "${GREEN}The current IP matches the record ${DOMAIN}, no need to update.${NC}"
|
echo -e "${GREEN}The current IP matches the record ${DOMAIN}, no need to update.${NC}" | logger
|
||||||
else
|
else
|
||||||
echo -e "${RED}Current IP does not match the record ${CURRENTIP} updating...${NC}"
|
echo -e "${RED}Current IP does not match the record ${CURRENTIP} updating...${NC}" | logger
|
||||||
curl ${APIURL}
|
curl ${APIURL}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue