From 146233fc0b1595c1e2acb539c5852726e23ed9e3 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 1 Mar 2012 17:36:04 +0000 Subject: [PATCH] fix defect 3495906 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11724 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatserver | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT/postscripts/xcatserver b/xCAT/postscripts/xcatserver index 06ba080f3..3ea4ce16a 100755 --- a/xCAT/postscripts/xcatserver +++ b/xCAT/postscripts/xcatserver @@ -43,7 +43,11 @@ export USEOPENSSLFORXCAT sed s/host=[^\|]*/host=$MASTER/ /etc/xcat/cfgloc > /etc/xcat/cfgloc.new mv /etc/xcat/cfgloc.new /etc/xcat/cfgloc else + if [ -n "$UPDATENODE" ] && [ $UPDATENODE -eq 1 ]; then + cp /etc/xcat/cfgloc /etc/xcat/cfgloc.db2 + else mv /etc/xcat/cfgloc /etc/xcat/cfgloc.db2 + fi fi chmod 600 /etc/xcat/cfgloc* # do not assume working directory, use the full path