]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
dnsforward.cgi: Use new system methods
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 May 2021 18:39:41 +0000 (19:39 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jun 2021 13:30:52 +0000 (14:30 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/dnsforward.cgi

index 749d1216aa7b103306819187b026537ad40423bf..e2843a81f9918e242c04bd4a8fb9995fb111b714 100644 (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');
 }
 
 ###