-defect 2979871 is fixed;

"cp -a" and " echo '' " are used to emulate "mv -f" on statelite node


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6109 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-05-14 08:56:47 +00:00
parent c891a99e34
commit 7f3fb77741

View File

@ -20,7 +20,10 @@ if [ "$master" == "$sitemaster" ]; then
if [ ! -f $conf_file_org ]; then
mv -f $conf_file $conf_file_org
else
mv -f $conf_file $conf_file_backup
# mv can't work on statelite node
# "cp" and "empty" is used to simulate
cp -a $conf_file $conf_file_backup
echo "" > $conf_file
fi
for i in $(echo $NTPSERVERS | tr ',' ' ')
do
@ -36,7 +39,8 @@ else
if [ ! -f $conf_file_org ]; then
mv -f $conf_file $conf_file_org
else
mv -f $conf_file $conf_file_backup
cp -a $conf_file $conf_file_backup
echo "" > $conf_file
fi
echo "server $master" >$conf_file