diff --git a/xCAT/postscripts/setupntp b/xCAT/postscripts/setupntp index 84e3f7a82..04ed90758 100755 --- a/xCAT/postscripts/setupntp +++ b/xCAT/postscripts/setupntp @@ -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" = "<xcatmaster>" ] || [ "$NTPSERVERS" = "" ]; 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" = "<xcatmaster>" ]; then + if [ "$NTPSERVERS" = "<xcatmaster>" ] || [ "$NTPSERVERS" = "" ]; then echo "server $master" >>$conf_file else for i in $(echo $NTPSERVERS | tr ',' ' ')