mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-12-02 13:03:15 +01:00
13 lines
266 B
Bash
Executable File
13 lines
266 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# get owner of /app
|
|
OWNER="$(stat -c '%u' "/app")"
|
|
GROUP="$(stat -c '%g' "/app")"
|
|
useradd --home-dir /tmp -u $OWNER user || /bin/true
|
|
|
|
# run with same user to avoid any issues
|
|
# with file permissions
|
|
. /root/.nvm/nvm.sh
|
|
gosu $OWNER:$GROUP bash -c "$@"
|
|
|