From f632531099379a1046393dfd7063b674f09b8dc0 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Mon, 16 Oct 2017 15:02:12 +0800 Subject: 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 --- testapi/update/templates/rm_olds.sh | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 testapi/update/templates/rm_olds.sh (limited to 'testapi/update/templates/rm_olds.sh') 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 -- cgit 1.2.3-korg