mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +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"));
|
return { 'up' => -1 } if (!&foreign_check("proc"));
|
||||||
&foreign_require("proc", "proc-lib.pl");
|
&foreign_require("proc", "proc-lib.pl");
|
||||||
if (&foreign_check("exports") || &foreign_check("dfsadmin") ||
|
if (&foreign_installed("exports") || &foreign_installed("dfsadmin") ||
|
||||||
&foreign_check("bsdexports") || &foreign_check("hpuxexports")) {
|
&foreign_installed("bsdexports") || &foreign_installed("hpuxexports")) {
|
||||||
return { 'up' => &find_named_process('nfsd') ? 1 : 0 };
|
return { 'up' => &find_named_process('nfsd') ? 1 : 0 };
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user