From dbe809d76b178e5a142c36b4a8334c73c2fcdf11 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 10 Oct 2021 22:31:35 -0700 Subject: [PATCH] Need to clear module.info cache after installing --- webmin/webmin-lib.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/webmin/webmin-lib.pl b/webmin/webmin-lib.pl index 3d8c7c81e..b4acb6458 100755 --- a/webmin/webmin-lib.pl +++ b/webmin/webmin-lib.pl @@ -383,16 +383,13 @@ else { return &text('install_eextract', $out); } if ($need_unlink) { unlink($file); } + &flush_webmin_caches(); my $perl = &get_perl_path(); my @st = stat("$module_root_directory/index.cgi"); foreach my $moddir (keys %mods) { my $pwd = &module_root_directory($moddir); if ($hasfile{$moddir,"module.info"}) { my %minfo = &get_module_info($moddir); - if (!$minfo{'desc'}) { - my $minfo_file = "$root_directory/$moddir/module.info"; - &read_file($minfo_file, \%minfo) if (-r $minfo_file); - } push(@mdescs, $minfo{'desc'}); push(@mdirs, $pwd); push(@msizes, &disk_usage_kb($pwd));