diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2017-10-16 15:02:12 +0800 |
---|---|---|
committer | Serena Feng <feng.xiaowei@zte.com.cn> | 2017-10-16 08:13:55 +0000 |
commit | f632531099379a1046393dfd7063b674f09b8dc0 (patch) | |
tree | 13bc7cb2e8acdf0758a42fb622c2fa1f2257ac6f /testapi/update/templates/rm_olds.sh | |
parent | 4724c5efa2284e42688e3716174a8568a61e5d60 (diff) |
delete legacy update code
update directory was employed to update TestAPI before auto deployment
is adopted, now it is useless and can be deleted.
Change-Id: I4e5ae84e80879cd9f711dc1d02224ae4f5902e49
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/update/templates/rm_olds.sh')
-rw-r--r-- | testapi/update/templates/rm_olds.sh | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/testapi/update/templates/rm_olds.sh b/testapi/update/templates/rm_olds.sh deleted file mode 100644 index c6bca18..0000000 --- a/testapi/update/templates/rm_olds.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -proc_number=`ps -ef | grep opnfv-testapi | grep -v grep | wc -l` -if [ $proc_number -gt 0 ]; then - procs=`ps -ef | grep opnfv-testapi | grep -v grep` - echo "begin to kill opnfv-testapi $procs" - ps -ef | grep opnfv-testapi | grep -v grep | awk '{print $2}' | xargs kill -kill &>/dev/null -fi - -number=`docker ps -a | awk 'NR != 1' | grep testapi | wc -l` -if [ $number -gt 0 ]; then - containers=number=`docker ps -a | awk 'NR != 1' | grep testapi` - echo "begin to rm containers $containers" - docker ps -a | awk 'NR != 1' | grep testapi | awk '{print $1}' | xargs docker rm -f &>/dev/null -fi |