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.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/auth/docker/aaf.sh b/auth/docker/aaf.sh
index ac888390..02d258f8 100644
--- a/auth/docker/aaf.sh
+++ b/auth/docker/aaf.sh
@@ -26,8 +26,11 @@ DOCKER=${DOCKER:=docker}
LINKS="--link $CASSANDRA_DOCKER"
function run_it() {
+ if [ -n "${DUSER}" ]; then
+ USER_LINE="--user ${DUSER}"
+ fi
$DOCKER run $@ \
- --user aaf \
+ $USER_LINE \
-v "aaf_config:$CONF_ROOT_DIR" \
-v "aaf_status:/opt/app/aaf/status" \
$LINKS \