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"); ...@@ -35,17 +35,17 @@ require_once("services.inc");
require_once("plugins.inc.d/dyndns.inc"); require_once("plugins.inc.d/dyndns.inc");
if (isset($argv[1])) { if (isset($argv[1])) {
$argument = trim($argv[1], " \n"); $argument = trim($argv[1], " \n");
} else { } else {
$argument = null; $argument = null;
} }
if (empty($argument)) { if (empty($argument)) {
dyndns_configure_do(true); dyndns_configure_do(true);
} else { } else {
$interface = lookup_gateway_interface_by_name($argument); $interface = lookup_gateway_interface_by_name($argument);
if (empty($interface)) { if (empty($interface)) {
$interface = $argument; $interface = $argument;
} }
dyndns_configure_do(true, $interface); dyndns_configure_do(true, $interface);
} }
...@@ -35,17 +35,17 @@ require_once("services.inc"); ...@@ -35,17 +35,17 @@ require_once("services.inc");
require_once("plugins.inc.d/rfc2136.inc"); require_once("plugins.inc.d/rfc2136.inc");
if (isset($argv[1])) { if (isset($argv[1])) {
$argument = trim($argv[1], " \n"); $argument = trim($argv[1], " \n");
} else { } else {
$argument = null; $argument = null;
} }
if (empty($argument)) { if (empty($argument)) {
rfc2136_configure_do(true); rfc2136_configure_do(true);
} else { } else {
$interface = lookup_gateway_interface_by_name($argument); $interface = lookup_gateway_interface_by_name($argument);
if (empty($interface)) { if (empty($interface)) {
$interface = $argument; $interface = $argument;
} }
rfc2136_configure_do(true, $interface); 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