blob: a9ee405075d9a5abb29982b10730bf82be2e72ed [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001Disable OS version check in status screen
2
3The code is not able to accurately detect the correct distro/version at
4the moment.
5
6Upstream-status: Inappropriate
7
8Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
9
10diff --git a/webmin/webmin-lib.pl b/webmin/webmin-lib.pl
11index 57a37f7..838b944 100755
12--- a/webmin/webmin-lib.pl
13+++ b/webmin/webmin-lib.pl
14@@ -1059,18 +1059,19 @@ my %miniserv;
15 &load_theme_library(); # So that UI functions work
16
17 # Need OS upgrade
18-my %realos = &detect_operating_system(undef, 1);
19-if (($realos{'os_version'} ne $gconfig{'os_version'} ||
20- $realos{'os_type'} ne $gconfig{'os_type'}) &&
21- $realos{'os_version'} && $realos{'os_type'} &&
22- &foreign_available("webmin")) {
23- push(@notifs,
24- &ui_form_start("$gconfig{'webprefix'}/webmin/fix_os.cgi").
25- &text('os_incorrect', $realos{'real_os_type'},
26- $realos{'real_os_version'})."<p>\n".
27- &ui_form_end([ [ undef, $text{'os_fix'} ] ])
28- );
29- }
30+# Disabled for now as os-chooser.pl does not work on our system
31+#my %realos = &detect_operating_system(undef, 1);
32+#if (($realos{'os_version'} ne $gconfig{'os_version'} ||
33+# $realos{'os_type'} ne $gconfig{'os_type'}) &&
34+# $realos{'os_version'} && $realos{'os_type'} &&
35+# &foreign_available("webmin")) {
36+# push(@notifs,
37+# &ui_form_start("$gconfig{'webprefix'}/webmin/fix_os.cgi").
38+# &text('os_incorrect', $realos{'real_os_type'},
39+# $realos{'real_os_version'})."<p>\n".
40+# &ui_form_end([ [ undef, $text{'os_fix'} ] ])
41+# );
42+# }
43
44 # Password close to expiry
45 my $warn_days = $config{'warn_days'};