support external ntp server.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11562 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c1073c7699
commit
e96d29b8a5
@ -90,7 +90,21 @@ else
|
||||
mv -f $conf_file $conf_file_backup
|
||||
fi
|
||||
fi
|
||||
echo "server $master" >$conf_file
|
||||
|
||||
if [ $NTPSERVERS ]; then
|
||||
if [ "$NTPSERVERS" = "<xcatmaster>" ] || [ "$NTPSERVERS" = "<xcatmaster>" ]; then
|
||||
echo "server $master" >>$conf_file
|
||||
else
|
||||
for i in $(echo $NTPSERVERS | tr ',' ' ')
|
||||
do
|
||||
echo "server $i" >>$conf_file
|
||||
master=$i
|
||||
done
|
||||
fi
|
||||
else
|
||||
echo "server $master" >$conf_file
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
OS_TYPE=`uname`
|
||||
|
Loading…
Reference in New Issue
Block a user