Skip to content

Commit

Permalink
Fix to invalidate OS EOL data on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jul 2, 2024
1 parent e69fb75 commit 5f579e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webmin/webmin-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2638,6 +2638,10 @@ sub apply_new_os_version
$gconfig{'real_os_version'} = $osinfo{'real_os_version'};
$gconfig{'os_type'} = $osinfo{'os_type'};
$gconfig{'os_version'} = $osinfo{'os_version'};
foreach my $key ('os_eol_db', 'os_eol_expired',
'os_eol_expiring') {
delete($gconfig{$key});
}
&write_file("$config_directory/config", \%gconfig);
&unlock_file("$config_directory/config");

Expand Down

0 comments on commit 5f579e8

Please sign in to comment.