mirror of
https://github.com/webmin/webmin.git
synced 2026-02-09 16:52:19 +00:00
Use PID variable to detect miniserv as well
This commit is contained in:
@@ -1869,7 +1869,8 @@ my ($nowait) = @_;
|
||||
return undef if (&is_readonly_mode());
|
||||
my %miniserv;
|
||||
&get_miniserv_config(\%miniserv) || return;
|
||||
if ($main::webmin_script_type eq 'web' && !$ENV{"MINISERV_CONFIG"}) {
|
||||
if ($main::webmin_script_type eq 'web' && !$ENV{"MINISERV_CONFIG"} &&
|
||||
!$ENV{'MINISERV_PID'}) {
|
||||
# Running under some web server other than miniserv, so do nothing
|
||||
return;
|
||||
}
|
||||
@@ -1949,7 +1950,8 @@ sub reload_miniserv
|
||||
return undef if (&is_readonly_mode());
|
||||
my %miniserv;
|
||||
&get_miniserv_config(\%miniserv) || return;
|
||||
if ($main::webmin_script_type eq 'web' && !$ENV{"MINISERV_CONFIG"}) {
|
||||
if ($main::webmin_script_type eq 'web' && !$ENV{"MINISERV_CONFIG"} &&
|
||||
!$ENV{'MINISERV_PID'}) {
|
||||
# Running under some web server other than miniserv, so do nothing
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user