webmin: upgrade to version 1.801

Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Derek Straka 2016-07-27 11:54:38 -04:00 committed by Martin Jansa
parent df5141af8d
commit 181f5f81a3
2 changed files with 36 additions and 16 deletions

View File

@ -11,7 +11,7 @@ diff --git a/webmin/webmin-lib.pl b/webmin/webmin-lib.pl
index 57a37f7..838b944 100755 index 57a37f7..838b944 100755
--- a/webmin/webmin-lib.pl --- a/webmin/webmin-lib.pl
+++ b/webmin/webmin-lib.pl +++ b/webmin/webmin-lib.pl
@@ -1059,18 +1059,19 @@ my %miniserv; @@ -1086,28 +1086,28 @@
&load_theme_library(); # So that UI functions work &load_theme_library(); # So that UI functions work
# Need OS upgrade # Need OS upgrade
@ -20,26 +20,46 @@ index 57a37f7..838b944 100755
- $realos{'os_type'} ne $gconfig{'os_type'}) && - $realos{'os_type'} ne $gconfig{'os_type'}) &&
- $realos{'os_version'} && $realos{'os_type'} && - $realos{'os_version'} && $realos{'os_type'} &&
- &foreign_available("webmin")) { - &foreign_available("webmin")) {
- push(@notifs, - my ($realminor) = split(/\./, $realos{'os_version'});
- &ui_form_start("$gconfig{'webprefix'}/webmin/fix_os.cgi"). - my ($minor) = split(/\./, $gconfig{'os_version'});
- &text('os_incorrect', $realos{'real_os_type'}, - if ($realos{'os_type'} eq $gconfig{'os_type'} &&
- $realos{'real_os_version'})."<p>\n". - $realminor == $minor) {
- &ui_form_end([ [ undef, $text{'os_fix'} ] ]) - # Only the minor version number changed - no need to apply
- ); - &apply_new_os_version(\%realos);
- }
- else {
- # Large enough change to tell the user
- push(@notifs,
- &ui_form_start("$gconfig{'webprefix'}/webmin/fix_os.cgi").
- &text('os_incorrect', $realos{'real_os_type'},
- $realos{'real_os_version'})."<p>\n".
- &ui_form_end([ [ undef, $text{'os_fix'} ] ])
- );
- }
- } - }
+# Disabled for now as os-chooser.pl does not work on our system
+#my %realos = &detect_operating_system(undef, 1); +#my %realos = &detect_operating_system(undef, 1);
+#if (($realos{'os_version'} ne $gconfig{'os_version'} || +#if (($realos{'os_version'} ne $gconfig{'os_version'} ||
+# $realos{'os_type'} ne $gconfig{'os_type'}) && +# $realos{'os_type'} ne $gconfig{'os_type'}) &&
+# $realos{'os_version'} && $realos{'os_type'} && +# $realos{'os_version'} && $realos{'os_type'} &&
+# &foreign_available("webmin")) { +# &foreign_available("webmin")) {
+# push(@notifs, +# my ($realminor) = split(/\./, $realos{'os_version'});
+# &ui_form_start("$gconfig{'webprefix'}/webmin/fix_os.cgi"). +# my ($minor) = split(/\./, $gconfig{'os_version'});
+# &text('os_incorrect', $realos{'real_os_type'}, +# if ($realos{'os_type'} eq $gconfig{'os_type'} &&
+# $realos{'real_os_version'})."<p>\n". +# $realminor == $minor) {
+# &ui_form_end([ [ undef, $text{'os_fix'} ] ]) +# # Only the minor version number changed - no need to apply
+# ); +# &apply_new_os_version(\%realos);
+# }
+# else {
+# # Large enough change to tell the user
+# push(@notifs,
+# &ui_form_start("$gconfig{'webprefix'}/webmin/fix_os.cgi").
+# &text('os_incorrect', $realos{'real_os_type'},
+# $realos{'real_os_version'})."<p>\n".
+# &ui_form_end([ [ undef, $text{'os_fix'} ] ])
+# );
+# }
+# } +# }
# Password close to expiry # Password close to expiry
my $warn_days = $config{'warn_days'}; my $warn_days = $config{'warn_days'};

View File

@ -20,8 +20,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \
file://mysql-config-fix.patch \ file://mysql-config-fix.patch \
" "
SRC_URI[md5sum] = "4007c390323d840f26c2e0f43c5c81a3" SRC_URI[md5sum] = "91d05b4e31ad1bd14bab14e0f155c088"
SRC_URI[sha256sum] = "5111f820adc6fbca997a58d4b2fa186dac6cded9cff0e70724f8cae6021123d9" SRC_URI[sha256sum] = "ad477edb41dc1a900448afc8b5528e136b3778d2d303f23bc564afb975eb5bed"
inherit perlnative update-rc.d inherit perlnative update-rc.d