From f60cccbfda0bda01705908f4bf463b75cc52f53d Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 28 Apr 2009 14:56:41 +0000 Subject: [PATCH] Export postscripts dir on service nodes git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3268 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/servicenode | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xCAT/postscripts/servicenode b/xCAT/postscripts/servicenode index ed9f929d5..746d82e0f 100755 --- a/xCAT/postscripts/servicenode +++ b/xCAT/postscripts/servicenode @@ -142,6 +142,15 @@ sub setupAIXsn `logger -t xcat $msg`; } + # check if /install/postscripts is in /etc/exports + if (&runcmd("/bin/cat /etc/exports | grep '/install/postscripts ' >/dev/null 2>&1") != 0) { + # if not add it and make sure it is exported + if (&runcmd("echo '/install/postscripts -ro' >> /etc/exports; exportfs -a") !=0 ) { + $msg = "$::sdate servicenode: Could not update the /etc/exports file.\n"; + `logger -t xcat $msg`; + } + } + # make sure we don't have xCATMN file if (-f "/etc/xCATMN") { if (&runcmd("rm /etc/xCATMN") != 0 ) {