mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Check if an NFS server is actually installed
This commit is contained in:
@ -5,8 +5,8 @@ sub get_nfs_status
|
||||
{
|
||||
return { 'up' => -1 } if (!&foreign_check("proc"));
|
||||
&foreign_require("proc", "proc-lib.pl");
|
||||
if (&foreign_check("exports") || &foreign_check("dfsadmin") ||
|
||||
&foreign_check("bsdexports") || &foreign_check("hpuxexports")) {
|
||||
if (&foreign_installed("exports") || &foreign_installed("dfsadmin") ||
|
||||
&foreign_installed("bsdexports") || &foreign_installed("hpuxexports")) {
|
||||
return { 'up' => &find_named_process('nfsd') ? 1 : 0 };
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user