From 5f31110075ff9ce56ba8969c040b7037d5db2770 Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Tue, 9 Aug 2016 16:44:01 +0200 Subject: [PATCH] split user-controlled variables from calculated ones makes diffing against production easier --- bin/client/tdyndns_client | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/client/tdyndns_client b/bin/client/tdyndns_client index 1c04e34..2d7a756 100755 --- a/bin/client/tdyndns_client +++ b/bin/client/tdyndns_client @@ -28,11 +28,13 @@ warn() { USERNAME=sue PASSWORD=hygCithOrs5 -HOSTNAME=$(hostname) ZONE=dyn.example.com -FQDN=$HOSTNAME.$USERNAME.$ZONE NS=ns.example.com -URL="http://dyndns.example.com/nic/update?hostname=$FQDN&myip=" +WEB=dyndns.example.com + +HOSTNAME=$(hostname) +FQDN=$HOSTNAME.$USERNAME.$ZONE +URL="http://$WEB/nic/update?hostname=$FQDN&myip=" WGET="wget -q --tries=2 --timeout=5" if [ -z "$HOSTNAME" ] ; then -- 2.39.5