webmin/webmin-1.310-usermin-fix-installing-missing-package.diff
2012-02-01 15:13:03 +04:00

43 lines
1.9 KiB
Diff

--- usermin/index.cgi 2006-11-29 23:36:58.000000000 +0100
+++ usermin/index.cgi.oden 2007-01-15 18:39:07.000000000 +0100
@@ -9,21 +9,25 @@
print "<p>",&text('index_econfig', "<tt>$config{'usermin_dir'}</tt>",
"$gconfig{'webprefix'}/config.cgi?$module_name"),"<p>\n";
if ($config{'usermin_dir'} eq $standard_usermin_dir) {
- local $mode;
- if (&foreign_check("software")) {
- local %sconfig = &foreign_config("software");
- $mode = $sconfig{'package_system'} eq 'rpm' ? 'rpm' :
- $sconfig{'package_system'} eq 'dpkg' ? 'deb' :
- undef;
- }
- print "$text{'index_install'}<br>\n";
- print "<center><form action=upgrade.cgi method=post enctype=multipart/form-data>\n";
- print "<input type=hidden name=install value=1>\n";
- print "<input type=hidden name=source value=2>\n";
- print "<input type=hidden name=mode value='$mode'>\n";
- print "<input type=submit value='",
- ($mode ? $text{'index_'.$mode} : $text{'index_tgz'}),"'>\n";
- print "</form></center>\n";
+# local $mode;
+# if (&foreign_check("software")) {
+# local %sconfig = &foreign_config("software");
+# $mode = $sconfig{'package_system'} eq 'rpm' ? 'rpm' :
+# $sconfig{'package_system'} eq 'dpkg' ? 'deb' :
+# undef;
+# }
+# print "$text{'index_install'}<br>\n";
+# print "<center><form action=upgrade.cgi method=post enctype=multipart/form-data>\n";
+# print "<input type=hidden name=install value=1>\n";
+# print "<input type=hidden name=source value=2>\n";
+# print "<input type=hidden name=mode value='$mode'>\n";
+# print "<input type=submit value='",
+# ($mode ? $text{'index_'.$mode} : $text{'index_tgz'}),"'>\n";
+# print "</form></center>\n";
+ print "<p>If Usermin is not yet installed on your system, you may use ".
+ "the graphical program <tt>rpmdrake</tt> or the commandline program\n".
+ "<tt>urpmi usermin</tt>. Then, re-load this page.\n";
+ }
}
&ui_print_footer("/", $text{'index'});
exit;