summaryrefslogtreecommitdiffstats
path: root/auth/docker/drun.sh
diff options
context:
space:
mode:
Diffstat (limited to 'auth/docker/drun.sh')
-rw-r--r--auth/docker/drun.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/auth/docker/drun.sh b/auth/docker/drun.sh
index d7d43d65..994bb556 100644
--- a/auth/docker/drun.sh
+++ b/auth/docker/drun.sh
@@ -93,9 +93,12 @@ for AAF_COMPONENT in ${AAF_COMPONENTS}; do
#--hostname="${AAF_COMPONENT}.${NAMESPACE}" \
# --env aaf_locate_url=https://aaf-locate:8095 \
# $ADD_HOST \
+ if [ -n "${DUSER}" ]; then
+ THE_USER="--user $DUSER"
+ fi
$DOCKER run \
-d \
- --user aaf \
+ ${THE_USER} \
--name aaf-$AAF_COMPONENT \
${LINKS} \
--env AAF_ENV=${AAF_ENV} \