ddclient/svn/patches/debianpatches/update-new-config.patch
wimpunk 2863dd459d Added debian and ubuntu patches
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@69 3873ddee-7413-0410-b6c4-c2c57c1ab35a
2007-07-30 07:11:22 +00:00

22 lines
888 B
Diff

ddclient did not update the dynamic DNS entry if the config changes.
This patch by Frans Pop to fixes this problem reported as Debian bug
#217041.
Index: ddclient
===================================================================
--- ddclient.orig 2006-12-01 23:22:36.938926449 +0100
+++ ddclient 2006-12-01 23:25:12.987120319 +0100
@@ -1998,6 +1998,13 @@
} elsif (defined($sub) && &$sub($host)) {
$update = 1;
+ } elsif (($cache{$host}{'static'} ne $config{$host}{'static'}) ||
+ ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'}) ||
+ ($cache{$host}{'mx'} ne $config{$host}{'mx'}) ||
+ ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) {
+ info("updating %s because host settings have been changed.", $host);
+ $update = 1;
+
} else {
success("%s: skipped: IP address was already set to %s.", $host, $ip)
if opt('verbose');