JIRA: BOTTLENECKS-29
[bottlenecks.git] / vstf / install.sh
old mode 100755 (executable)
new mode 100644 (file)
index 2aae6f5..4a63a1e
@@ -1,4 +1,12 @@
 #!/bin/bash
+##############################################################################
+# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
 
 SERVER=$2
 PORT=$3
@@ -30,7 +38,11 @@ if [ $1 == "manager" ]; then
     then
         vstf-manager start
     else
-        vstf-manager start --monitor ${SERVER} --port ${PORT}
+        if [ "${PORT}x" == "x" ]; then
+            vstf-manager start --monitor ${SERVER}
+        else
+            vstf-manager start --monitor ${SERVER} --port ${PORT}
+        fi
     fi
 elif [ $1 == "agent" ];then
     vstf-manager stop