mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -1689,31 +1689,6 @@ if (($_[0] eq "nfs") || ($_[0] eq "nfs4")) {
|
||||
$in{'nfs_host'}, "<pre>$dirlist</pre>"));
|
||||
}
|
||||
|
||||
# Try a test mount to see if filesystem is available
|
||||
$temp = &tempname();
|
||||
&make_dir($temp, 0755);
|
||||
&execute_command("mount -t $_[0] ".
|
||||
quotemeta("$in{nfs_host}:$in{nfs_dir}")." ".
|
||||
quotemeta($temp),
|
||||
undef, \$mout, \$mout);
|
||||
if ($mout =~ /No such file or directory/i) {
|
||||
&error(&text('linux_enfsdir', $in{'nfs_dir'},
|
||||
$in{'nfs_host'}, "<pre>$dirlist</pre>"));
|
||||
}
|
||||
elsif ($mout =~ /Permission denied/i) {
|
||||
&error(&text('linux_enfsperm', $in{'nfs_dir'}, $in{'nfs_host'}));
|
||||
}
|
||||
elsif ($?) {
|
||||
&error(&text('linux_enfsmount', "<tt>$mout</tt>"));
|
||||
}
|
||||
# It worked! unmount
|
||||
local $umout;
|
||||
&execute_command("umount ".quotemeta($temp), undef, \$umout, \$umout);
|
||||
if ($?) {
|
||||
&error(&text('linux_enfsmount', "<tt>$umout</tt>"));
|
||||
}
|
||||
rmdir(&translate_filename($temp)); # Don't delete mounted files!
|
||||
|
||||
return "$in{nfs_host}:$in{nfs_dir}";
|
||||
}
|
||||
elsif ($_[0] eq "auto") {
|
||||
|
||||
@@ -33,7 +33,7 @@ our @cluster_modules = ( "cluster-software" );
|
||||
our @server_types = (
|
||||
# Linux sub-types, which have to come first
|
||||
[ 'asianux', 'Asianux', undef, 'Asianux' ],
|
||||
[ 'alma', 'Alma Linux', undef, 'Alma' ],
|
||||
[ 'alma', 'AlmaLinux', undef, 'Alma' ],
|
||||
[ 'centos', 'CentOS Linux', undef, 'CentOS' ],
|
||||
[ 'ubuntu', 'Ubuntu Linux', undef, 'Ubuntu' ],
|
||||
[ 'fedora', 'Fedora Linux', undef, 'Fedora' ],
|
||||
|
||||
Reference in New Issue
Block a user