From 8a1e6afef57f63d8955ddb165395c09227d0b2ac Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 17 May 2021 19:38:18 +0100 Subject: [PATCH] dns.cgi: Use new system commands Signed-off-by: Michael Tremer --- html/cgi-bin/dns.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/dns.cgi b/html/cgi-bin/dns.cgi index 7dc1135822..0a34d3fd6c 100755 --- a/html/cgi-bin/dns.cgi +++ b/html/cgi-bin/dns.cgi @@ -48,8 +48,8 @@ my $settings_file = "${General::swroot}/dns/settings"; my $servers_file = "${General::swroot}/dns/servers"; # Create files if the does not exist. -unless (-f $settings_file) { system("touch $settings_file") }; -unless (-f $servers_file) { system("touch $servers_file") }; +unless (-f $settings_file) { &General::system("touch", "$settings_file") }; +unless (-f $servers_file) { &General::system("touch", "$servers_file") }; # File which stores the ISP assigned DNS servers. my @ISP_nameserver_files = ( "/var/run/dns1", "/var/run/dns2" ); @@ -844,7 +844,7 @@ sub _handle_unbound_and_more () { &IDS::call_suricatactrl("restart"); } # Restart unbound - system('/usr/local/bin/unboundctrl reload >/dev/null'); + &General::system('/usr/local/bin/unboundctrl', 'reload'); } # Check if the system is online (RED is connected). -- 2.39.5