summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2009-05-29 11:28:53 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2009-05-29 11:28:53 -0700
commitc265b75d1b5bf6a317a99bd99a4c49c5f2c6a8b3 (patch)
treed68e336d4884d5415f18dfd27d3b77506c8059c5 /scripts
parent9a6355bc1b1367368316d21813e9c05538e223db (diff)
downloadvyatta-cfg-quagga-c265b75d1b5bf6a317a99bd99a4c49c5f2c6a8b3.tar.gz
vyatta-cfg-quagga-c265b75d1b5bf6a317a99bd99a4c49c5f2c6a8b3.zip
move server,protocol to the same line in config file
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dynamic-dns/vyatta-dynamic-dns.pl4
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";