From 062996bf7c69c5a4aac711e42f99e13721cfc4b3 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 2 Mar 2023 01:35:52 +0000 Subject: [PATCH] Updated dnydns script --- updatedomain.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/updatedomain.sh b/updatedomain.sh index 7c07b09..a93753c 100755 --- a/updatedomain.sh +++ b/updatedomain.sh @@ -12,7 +12,11 @@ info() { printf "\n%s %s\n\n" "$( date )" "$*" >&2; } info "Starting IP update for subdomains" -echo "https://dynamicdns.park-your-domain.com/update?host=$DYDNS_DOMAIN&domain=$DYDNS_HOST&password=$DYDNS_PASSWORD" -curl "https://dynamicdns.park-your-domain.com/update?host=$DYDNS_DOMAIN&domain=$DYDNS_HOST&password=$DYDNS_PASSWORD" +echo "https://dynamicdns.park-your-domain.com/update?host=$DYDNS_HOST&domain=$DYDNS_DOMAIN&password=$DYDNS_PASS" + +# first subdomain +curl "https://dynamicdns.park-your-domain.com/update?host=$DYDNS_HOST&domain=$DYDNS_DOMAIN&password=$DYDNS_PASS" +# second subdomain +curl "https://dynamicdns.park-your-domain.com/update?host=$DYDNS_HOST2&domain=$DYDNS_DOMAIN&password=$DYDNS_PASS" info "IP update done"