mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
dns/rfc2136: second iteration using mwexecfb(), no functional changes
This commit is contained in:
parent
6fba852a9d
commit
b92c2e631f
1 changed files with 8 additions and 7 deletions
|
|
@ -198,15 +198,16 @@ function rfc2136_configure_do($verbose = false, $int = null, $updatehost = '', $
|
|||
$upinst .= "\n"; /* mind that trailing newline! */
|
||||
|
||||
if ($need_update) {
|
||||
$cmds = "/var/etc/nsupdatecmds{$i}";
|
||||
file_safe($cmds, $upinst);
|
||||
$args = [];
|
||||
$args[] = exec_safe('-k %s', $keyfile);
|
||||
file_safe("/var/etc/nsupdatecmds{$i}", $upinst);
|
||||
|
||||
$frmt = ['/var/etc/nsupdatecmds%s -k %s'];
|
||||
$args = [$i, $keyfile];
|
||||
|
||||
if (isset($dnsupdate['usetcp'])) {
|
||||
$args[] = '-v';
|
||||
$frmt[] = '-v';
|
||||
}
|
||||
$args[] = exec_safe('%s', $cmds);
|
||||
mwexecf_bg('/usr/local/bin/nsupdate ' . join(' ', $args));
|
||||
|
||||
mwexecfb($frmt, $args);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue