Use a better function to map the config file to the pool directory

This commit is contained in:
Jamie Cameron
2022-02-06 13:35:52 -08:00
parent 5b7ccc0342
commit e00939dc24

View File

@@ -295,10 +295,12 @@ if ($file && &get_config_fmt($file) eq "fpm" &&
my $conf;
if (-r $file) {
my @conf;
@conf = grep { $file =~ /\Q$_->{'dir'}\E/ }
&virtual_server::list_php_fpm_configs();
$conf =
&virtual_server::get_php_fpm_config($conf[0]->{'shortversion'});
@conf = grep { &is_under_directory($_->{'dir'}, $file) }
&virtual_server::list_php_fpm_configs();
if (@conf) {
$conf = &virtual_server::get_php_fpm_config(
$conf[0]->{'shortversion'});
}
}
&virtual_server::push_all_print();
&virtual_server::set_all_null_print();