Add exportfs -a to make sure both the /install and /tftpboot dir

are exported after they are added to the /etc/exports file. 

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@535 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-02-21 16:36:58 +00:00
parent aeeabe3717
commit d82dfb1293

View File

@ -106,9 +106,10 @@ if [ "$1" = "1" ]; then #Only if installing for the fist time..
fi
if ! grep /install /etc/exports; then
echo '/install *(ro,no_root_squash,sync)' >> /etc/exports #SECURITY: this has potential for sharing private host/user keys
service nfs restart
chkconfig nfs on
fi
service nfs restart
chkconfig nfs on
exportfs -a
if [ ! -r /etc/xcat/site.sqlite ]; then
XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab key=xcatdport site.value=3001
XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab key=xcatiport site.value=3002