mirror of
https://github.com/webmin/webmin.git
synced 2026-08-09 01:00:40 +01:00
Use a better function to map the config file to the pool directory
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user