diff --git a/xCAT-server/etc/init.d/xcatd b/xCAT-server/etc/init.d/xcatd index 734542e92..2ae1c48f1 100755 --- a/xCAT-server/etc/init.d/xcatd +++ b/xCAT-server/etc/init.d/xcatd @@ -77,7 +77,7 @@ restart) $STATUS > /dev/null 2>&1 if [ "$?" = "0" ]; then ver=`nodels --version` - if [[ $ver < "Version 2.6" ]]; then # force to stop xcatd first when update from version earlier than 2.6 + if [ "$ver" \< "Version 2.6" ]; then # force to stop xcatd first when update from version earlier than 2.6 $0 stop fi fi