From 6683cacb972c42977de57045d84bc2eac4f8e5bc Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 12 Apr 2022 20:43:26 -0700 Subject: [PATCH] Fix error when installing scripts https://github.com/virtualmin/virtualmin-nginx/issues/27 --- virtual_feature.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/virtual_feature.pl b/virtual_feature.pl index d7e38af..947c6fe 100644 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -960,12 +960,13 @@ sub feature_validate sub feature_webmin { my ($d, $alld) = @_; -my @doms = map { $_->{'dom'} } grep { $_->{$module_name} } @$alld; +my @doms = grep { $_->{$module_name} } @$alld; +my @dnames = map { $_->{'dom'} } @doms; if (@doms) { # Grant access to Nginx module my @rv; push(@rv, [ $module_name, - { 'vhosts' => join(' ', @doms), + { 'vhosts' => join(' ', @dnames), 'root' => $d->{'home'}, 'global' => 0, 'logs' => 0,