From e92a3552b21ae09e3639286dd394ed209ef151b1 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 13 Mar 2018 22:04:54 -0700 Subject: [PATCH] Check the actual command that is run https://www.virtualmin.com/node/56380 --- bind8/conf_rndc.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bind8/conf_rndc.cgi b/bind8/conf_rndc.cgi index cd48a7f79..78f5784b4 100755 --- a/bind8/conf_rndc.cgi +++ b/bind8/conf_rndc.cgi @@ -22,7 +22,9 @@ if (!&has_command($config{'rndcconf_cmd'})) { # Check if already working my $out; -&execute_command("$config{'rndc_cmd'} status", undef, \$out); +&execute_command($config{'rndc_cmd'}. + ($config{'rndc_conf'} ? " -c $config{'rndc_conf'}" : ""). + " status", undef, \$out); if (!$? && $out !~ /failed/) { print "",$text{'rndc_desc2'},"

\n"; }