From f5721bd42f7fa1c2fdd41a0661fb2ae195958ccc Mon Sep 17 00:00:00 2001 From: wimpunk Date: Wed, 19 Nov 2008 21:04:16 +0000 Subject: [PATCH] Added ddclient wrapper script git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@104 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- TODO | 2 ++ sample-ddclient-wrapper.sh | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 sample-ddclient-wrapper.sh diff --git a/TODO b/TODO index adf5ed6..1e92adf 100644 --- a/TODO +++ b/TODO @@ -10,3 +10,5 @@ or at work... * FAQ: bad hostname (checkip) * note about init-scripts. * request from dyndns: http://tinyurl.com/2l3twf + +* check bugs diff --git a/sample-ddclient-wrapper.sh b/sample-ddclient-wrapper.sh new file mode 100755 index 0000000..cf9e138 --- /dev/null +++ b/sample-ddclient-wrapper.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# +# This wrapper should be usefull for people who want to run a postscript with +# multiple arguments. Currently ddclient has a feature which doesn't allow +# multiple arguments. +# This example has been written to be able to update multiple domains with +# multiple login. It expects a /etc/ddclient/ddclient-domain2.conf with the +# configuration of the extra domain + +# the second domain who has to be updated +: ${SECONDCONFIG:=/etc/ddclient/ddclient-domain2.conf} +# ddclient adds the new IP as argument +IP=$1 + +ddclient -ip ${IP} -file ${SECONDCONFIG} -daemon 0