Check the actual command that is run https://www.virtualmin.com/node/56380

This commit is contained in:
Jamie Cameron
2018-03-13 22:04:54 -07:00
parent 2f7b7b9f6c
commit e92a3552b2

View File

@@ -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 "<b>",$text{'rndc_desc2'},"</b><p>\n";
}