Commit 6e599ed4 authored by Franco Fichtner's avatar Franco Fichtner

rc: fix tabs vs. spaces in dynamic dns scripts

parent c1055e1d
......@@ -35,17 +35,17 @@ require_once("services.inc");
require_once("plugins.inc.d/dyndns.inc");
if (isset($argv[1])) {
$argument = trim($argv[1], " \n");
$argument = trim($argv[1], " \n");
} else {
$argument = null;
$argument = null;
}
if (empty($argument)) {
dyndns_configure_do(true);
dyndns_configure_do(true);
} else {
$interface = lookup_gateway_interface_by_name($argument);
if (empty($interface)) {
$interface = $argument;
}
dyndns_configure_do(true, $interface);
$interface = lookup_gateway_interface_by_name($argument);
if (empty($interface)) {
$interface = $argument;
}
dyndns_configure_do(true, $interface);
}
......@@ -35,17 +35,17 @@ require_once("services.inc");
require_once("plugins.inc.d/rfc2136.inc");
if (isset($argv[1])) {
$argument = trim($argv[1], " \n");
$argument = trim($argv[1], " \n");
} else {
$argument = null;
$argument = null;
}
if (empty($argument)) {
rfc2136_configure_do(true);
rfc2136_configure_do(true);
} else {
$interface = lookup_gateway_interface_by_name($argument);
if (empty($interface)) {
$interface = $argument;
}
rfc2136_configure_do(true, $interface);
$interface = lookup_gateway_interface_by_name($argument);
if (empty($interface)) {
$interface = $argument;
}
rfc2136_configure_do(true, $interface);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment