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 | e44d2f7 | 2018-08-16 17:22:45 -0500 | [diff] [blame] | 26 | AAF_COMPONENTS=$(cat components) |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 27 | else |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 28 | AAF_COMPONENTS="$@" |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 29 | fi |
| 30 | |
| 31 | for AAF_COMPONENT in ${AAF_COMPONENTS}; do |
Instrumental | 9405361 | 2018-10-08 11:27:18 -0500 | [diff] [blame] | 32 | $DOCKER stop aaf_$AAF_COMPONENT |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 33 | done |