git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11525 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd

This commit is contained in:
sjing 2012-02-09 11:34:05 +00:00
parent 37c05a00aa
commit 3e4156b864

View File

@ -56,7 +56,7 @@ logger -t xcat "Install: Setup NTP"
# else use the master which should be a service node
if [ "$master" = "$sitemaster" ]; then
if [ $NTPSERVERS ]; then
if [ "$NTPSERVERS" = "&lt;xcatmaster&gt;" ] || [ "$NTPSERVERS" = "<xcatmaster>" ]; then
if [ "$NODESETSTATE" = "statelite" ]; then
cp -a $conf_file $conf_file_org
echo "" > $conf_file
else
@ -66,7 +66,7 @@ if [ "$master" = "$sitemaster" ]; then
mv -f $conf_file $conf_file_backup
fi
fi
if [ "$NTPSERVERS" = "&lt;xcatmaster&gt;" ]; then
if [ "$NTPSERVERS" = "&lt;xcatmaster&gt;" ] || [ "$NTPSERVERS" = "<xcatmaster>" ]; then
echo "server $master" >>$conf_file
else
for i in $(echo $NTPSERVERS | tr ',' ' ')