mirror of
https://github.com/opnsense/plugins.git
synced 2025-12-10 00:09:10 -06:00
dns/rfc2136: fix command change not released yet
This commit is contained in:
parent
e5ff7d6296
commit
70862d6727
@ -200,13 +200,16 @@ function rfc2136_configure_do($verbose = false, $int = null, $updatehost = '', $
|
||||
if ($need_update) {
|
||||
file_safe("/var/etc/nsupdatecmds{$i}", $upinst);
|
||||
|
||||
$frmt = ['/var/etc/nsupdatecmds%s -k %s'];
|
||||
$args = [$i, $keyfile];
|
||||
$frmt = ['/usr/local/bin/nsupdate -k %s'];
|
||||
$args = [$keyfile];
|
||||
|
||||
if (isset($dnsupdate['usetcp'])) {
|
||||
$frmt[] = '-v';
|
||||
}
|
||||
|
||||
$args[] = "/var/etc/nsupdatecmds{$i}";
|
||||
$frmt[] = '%s';
|
||||
|
||||
mwexecfb($frmt, $args);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user