16267: switch to `arvados-server install -type test` for installing
[arvados.git] / tools / arvbox / lib / arvbox / docker / devenv.sh
1 #!/bin/bash
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 export ARVADOS_CONTAINER_PATH=/var/lib/arvados-arvbox
7 flock $ARVADOS_CONTAINER_PATH/createusers.lock /usr/local/lib/arvbox/createusers.sh --no-chown
8
9 if [[ -n "$*" ]] ; then
10     exec su --preserve-environment arvbox -c "$*"
11 else
12     exec su --login arvbox
13 fi