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
This commit is contained in:
lissav
2012-03-02 12:30:27 +00:00
parent 9083c12dfd
commit 727fdd1355
+5 -1
View File
@@ -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