diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-11-03 14:38:21 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-11-04 08:50:48 -0600 |
commit | ca788dc542830b054f0a46df2dfd774fc318872c (patch) | |
tree | e560db799400396278923b7cf1dbf6b40834901a /auth/docker/aaf.sh | |
parent | 014494d662fee62eb0911b693aa6baf0ba54e26f (diff) |
Liveness for CSIT
Issue-ID: AAF-606
Change-Id: I740c153d36d7428fbe0b35e8e997d1a5603d6f63
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/docker/aaf.sh')
-rw-r--r-- | auth/docker/aaf.sh | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/auth/docker/aaf.sh b/auth/docker/aaf.sh index 0512944d..6ba8631d 100644 --- a/auth/docker/aaf.sh +++ b/auth/docker/aaf.sh @@ -5,6 +5,7 @@ DOCKER=${DOCKER:=docker} function run_it() { $DOCKER run $@ \ -v "aaf_config:$CONF_ROOT_DIR" \ + -v "aaf_status:/opt/app/aaf/status" \ --add-host="$HOSTNAME:$HOST_IP" \ --add-host="aaf.osaaf.org:$HOST_IP" \ --env HOSTNAME=${HOSTNAME} \ @@ -24,9 +25,17 @@ function run_it() { } PARAMS="$@" -if [ -z "$PARAMS" ]; then - run_it --rm -else - run_it -it --rm -fi +case "$1" in + bash) + run_it -it --rm + ;; + -it) + shift + PARAMS="$@" + run_it -it --rm + ;; + *) + run_it --rm + ;; +esac |