File: sample-ddclient-wrapper.sh

package info (click to toggle)
ddclient 3.11.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,284 kB
  • sloc: perl: 14,597; sh: 916; makefile: 146; xml: 55
file content (15 lines) | stat: -rwxr-xr-x 574 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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