2 ##############################################################################
3 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
16 echo "Use Default server."
22 echo "Use Default port."
30 rm -rf vstf.egg-info || exit 1
31 rm -rf build/ || exit 1
32 rm -rf /usr/local/lib/python2.7/dist-packages/vstf* || exit 1
33 python setup.py install --force
34 if [ $1 == "manager" ]; then
37 if [ "${SERVER}x" == "x" ]
41 if [ "${PORT}x" == "x" ]; then
42 vstf-manager start --monitor ${SERVER}
44 vstf-manager start --monitor ${SERVER} --port ${PORT}
47 elif [ $1 == "agent" ];then
50 vstf-agent start --config_file=/etc/vstf/amqp/amqp.ini