dnsforward.cgi: Use new system methods

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2021-05-17 19:39:41 +01:00
parent 8a1e6afef5
commit 761c08a7c7

View File

@@ -124,7 +124,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'add'})
}
}
# Restart unbound
system('/usr/local/bin/unboundctrl reload >/dev/null');
&General::system('/usr/local/bin/unboundctrl', 'reload');
}
###
@@ -142,7 +142,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'remove'})
}
close(FILE);
# Restart unbound.
system('/usr/local/bin/unboundctrl reload >/dev/null');
&General::system('/usr/local/bin/unboundctrl', 'reload');
}
###
@@ -169,7 +169,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'toggle enable disable'})
}
close(FILE);
# Restart unbound.
system('/usr/local/bin/unboundctrl reload >/dev/null');
&General::system('/usr/local/bin/unboundctrl', 'reload');
}
###