diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-05-29 11:28:53 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-05-29 11:28:53 -0700 |
commit | c265b75d1b5bf6a317a99bd99a4c49c5f2c6a8b3 (patch) | |
tree | d68e336d4884d5415f18dfd27d3b77506c8059c5 /scripts/dynamic-dns | |
parent | 9a6355bc1b1367368316d21813e9c05538e223db (diff) | |
download | vyatta-cfg-system-c265b75d1b5bf6a317a99bd99a4c49c5f2c6a8b3.tar.gz vyatta-cfg-system-c265b75d1b5bf6a317a99bd99a4c49c5f2c6a8b3.zip |
move server,protocol to the same line in config file
Diffstat (limited to 'scripts/dynamic-dns')
-rw-r--r-- | scripts/dynamic-dns/vyatta-dynamic-dns.pl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/dynamic-dns/vyatta-dynamic-dns.pl b/scripts/dynamic-dns/vyatta-dynamic-dns.pl index 1d8511c5..232d260e 100644 --- a/scripts/dynamic-dns/vyatta-dynamic-dns.pl +++ b/scripts/dynamic-dns/vyatta-dynamic-dns.pl @@ -126,10 +126,8 @@ sub dynamicdns_get_values { my @hostnames = $config->returnValues("host-name"); my $server = $config->returnValue("server"); foreach my $hostname (@hostnames) { + $output .= "server=$server," if defined $server; $output .= "protocol=$service\n"; - if (defined $server) { - $output .= "server=$server\n"; - } $output .= "max-interval=28d\n"; $output .= "login=$login\n"; $output .= "password='$password'\n"; |