From 727fdd1355305df3ce849e5c7e0a4e04e0b0d42d Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 2 Mar 2012 12:30:27 +0000 Subject: [PATCH] fix defect 3495906 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11728 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcatserver | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/xcatserver b/xCAT/postscripts/xcatserver index 170c610c3..f8cca4155 100755 --- a/xCAT/postscripts/xcatserver +++ b/xCAT/postscripts/xcatserver @@ -23,7 +23,11 @@ export USEOPENSSLFORXCAT sed s/host=[^\|]*/host=$MASTER/ /etc/xcat/cfgloc > /etc/xcat/cfgloc.new mv /etc/xcat/cfgloc.new /etc/xcat/cfgloc else - mv /etc/xcat/cfgloc /etc/xcat/cfgloc.db2 + 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