mirror of
https://github.com/webmin/webmin.git
synced 2026-08-05 23:40:43 +01:00
Correct flag is actually -M to get modules
This commit is contained in:
@@ -1749,9 +1749,9 @@ foreach $l (&find_directive_struct("LoadModule", $conf)) {
|
||||
undef(@get_config_cache); # Cache is no longer valid
|
||||
|
||||
# Add dynamically loaded modules
|
||||
&open_execute_command(APACHE, "$config{'apachectl_path'} -l 2>/dev/null", 1);
|
||||
&open_execute_command(APACHE, "$config{'apachectl_path'} -M 2>/dev/null", 1);
|
||||
while(<APACHE>) {
|
||||
if (/(\S+)\.c/ && -r "$module_root_directory/$1.pl") {
|
||||
if (/(\S+)_module/ && -r "$module_root_directory/$1.pl") {
|
||||
push(@rv, $1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user