ddclient/sample-ddclient-wrapper.sh
wimpunk f5721bd42f Added ddclient wrapper script
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@104 3873ddee-7413-0410-b6c4-c2c57c1ab35a
2008-11-19 21:04:16 +00:00

15 lines
574 B
Bash
Executable file

#!/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