Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 1 | #!/bin/bash |
Instrumental | 7a1817b | 2018-11-05 11:11:15 -0600 | [diff] [blame] | 2 | ######### |
| 3 | # ============LICENSE_START==================================================== |
| 4 | # org.onap.aaf |
| 5 | # =========================================================================== |
| 6 | # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. |
| 7 | # =========================================================================== |
| 8 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | # you may not use this file except in compliance with the License. |
| 10 | # You may obtain a copy of the License at |
| 11 | # |
| 12 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | # |
| 14 | # Unless required by applicable law or agreed to in writing, software |
| 15 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | # See the License for the specific language governing permissions and |
| 18 | # limitations under the License. |
| 19 | # ============LICENSE_END==================================================== |
| 20 | # |
Instrumental | 12f7f46 | 2018-04-23 15:43:47 -0500 | [diff] [blame] | 21 | # Pull in Properties |
Instrumental | 23a1c2e | 2018-04-11 14:13:46 -0500 | [diff] [blame] | 22 | . ./d.props |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 23 | |
Instrumental | 9405361 | 2018-10-08 11:27:18 -0500 | [diff] [blame] | 24 | DOCKER=${DOCKER:=docker} |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 25 | if [ "$1" == "" ]; then |
Instrumental | 2b46f76 | 2019-02-20 11:14:41 -0600 | [diff] [blame] | 26 | for C in $(cat components); do |
| 27 | AAF_COMPONENTS="$C $AAF_COMPONENTS" |
| 28 | done |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 29 | else |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 30 | AAF_COMPONENTS="$@" |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 31 | fi |
| 32 | |
| 33 | for AAF_COMPONENT in ${AAF_COMPONENTS}; do |
Instrumental | 12414fe | 2019-01-22 10:27:32 -0600 | [diff] [blame] | 34 | $DOCKER stop aaf-$AAF_COMPONENT |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 35 | done |