You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
378 B
19 lines
378 B
10 months ago
|
#!/bin/bash
|
||
|
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
||
|
|
||
|
# NFS
|
||
|
t_InstallPackage nfs-utils
|
||
|
|
||
|
if [ "$centos_ver" = "5" ] ; then
|
||
|
t_serviceControl portmap restart
|
||
|
else
|
||
|
t_ServiceControl rpcbind restart
|
||
|
fi
|
||
|
|
||
|
if [ "$centos_ver" -ge 8 ] ; then
|
||
|
t_ServiceControl nfs-server start
|
||
|
else
|
||
|
# Restart because usualy NFS is enabled by default on CentOS-5
|
||
|
t_ServiceControl nfs restart
|
||
|
fi
|