script for nfs mount point
i have create the bash script for nfs but in this script asking for mount point only once it is it prompting for second time.
example: do you wants to create any other mount point [yes/no]?
note(if i give yes it should ask me to add the mount point else it should proceed with next step) it should ask each and every time if i give "yes" and add the mount point in it...
echo " enter the mount point name"
echo "$e *(rw,sync,no_root_squash)" >>/etc/exports
"Note:here it should ask again if any mount point needs to be added or not?
if yes it should start from again.."
service nfs restart
chkconfig nfs on
sounds like a good idea, post your script as well as the results of running it with sh -xvv for full details.
folks around here will not write the script for you, but are more then willing to help fix what you have done.
|All times are GMT -5. The time now is 07:31 PM.|