aboutsummaryrefslogtreecommitdiffstats
path: root/update/templates
diff options
context:
space:
mode:
Diffstat (limited to 'update/templates')
-rwxr-xr-xupdate/templates/rm_images.sh8
-rw-r--r--update/templates/rm_olds.sh8
2 files changed, 16 insertions, 0 deletions
diff --git a/update/templates/rm_images.sh b/update/templates/rm_images.sh
index 6722573..c166072 100755
--- a/update/templates/rm_images.sh
+++ b/update/templates/rm_images.sh
@@ -1,4 +1,12 @@
#!/bin/bash
+##############################################################################
+# Copyright (c) 2019 opnfv.
+#
+# 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
+##############################################################################
number=`docker images | awk 'NR != 1' | grep testapi | wc -l`
if [ $number -gt 0 ]; then
diff --git a/update/templates/rm_olds.sh b/update/templates/rm_olds.sh
index c6bca18..6724c33 100644
--- a/update/templates/rm_olds.sh
+++ b/update/templates/rm_olds.sh
@@ -1,4 +1,12 @@
#!/bin/bash
+##############################################################################
+# Copyright (c) 2019 opnfv.
+#
+# 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
+##############################################################################
proc_number=`ps -ef | grep opnfv-testapi | grep -v grep | wc -l`
if [ $proc_number -gt 0 ]; then