Artifacts to Bootstrap
[aaf/authz.git] / auth / docker / dstop.sh
index 4c8d442..85e6f28 100644 (file)
@@ -1,13 +1,14 @@
-#!/bin/bash 
+#!/bin/bash
 # Pull in Properties
 . ./d.props
 
+DOCKER=${DOCKER:=docker}
 if [ "$1" == "" ]; then
-  AAF_COMPONENTS=`ls ../aaf_${VERSION}/bin | grep -v '\.'`
+    AAF_COMPONENTS=$(cat components)
 else
-  AAF_COMPONENTS=$1
+    AAF_COMPONENTS="$@"
 fi
 
 for AAF_COMPONENT in ${AAF_COMPONENTS}; do
-  docker stop aaf_$AAF_COMPONENT
+    $DOCKER stop aaf_$AAF_COMPONENT
 done