summaryrefslogtreecommitdiffstats
path: root/auth/docker/aaf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'auth/docker/aaf.sh')
-rw-r--r--auth/docker/aaf.sh19
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