From 444a3b4fff3371cb77f9595c0064db2d256672ac Mon Sep 17 00:00:00 2001 From: lissav Date: Sun, 19 Dec 2010 12:05:06 +0000 Subject: [PATCH] chmod to 600 for all copies of cfgloc git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8456 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/db2install | 4 ++-- xCAT/postscripts/xcatserver | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/db2install b/xCAT/postscripts/db2install index dd13d6e18..b36833c53 100755 --- a/xCAT/postscripts/db2install +++ b/xCAT/postscripts/db2install @@ -122,7 +122,7 @@ if (!(-e ($db2install))) else { $msg = - "Cannot mount the site.db2installloc directory to get to the\n db2 code to install. Setup cannot continue.\n"; + "Cannot mount the site.db2installloc directory to get the db2 code to install. Setup cannot continue.\n"; `logger -t xcat $msg`; exit(1); } @@ -133,7 +133,7 @@ else `logger -t xcat $msg`; } -# get the cfgloc file, should be in /etc/xcat/cfgloc.db2 from xcatserver +# get the cfgloc file,if linux should be in /etc/xcat/cfgloc.db2 from xcatserver # postscript $rc = &getcfgloc; if ($rc != 0) diff --git a/xCAT/postscripts/xcatserver b/xCAT/postscripts/xcatserver index 01aa2c707..170c610c3 100755 --- a/xCAT/postscripts/xcatserver +++ b/xCAT/postscripts/xcatserver @@ -25,7 +25,7 @@ export USEOPENSSLFORXCAT else mv /etc/xcat/cfgloc /etc/xcat/cfgloc.db2 fi - chmod 600 /etc/xcat/cfgloc + chmod 600 /etc/xcat/cfgloc* # do not assume working directory, use the full path cp /xcatpost/_xcat/ca.pem /etc/xcat/cert/ca.pem kill -9 $CREDPID