mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-03 05:55:03 +01:00
14 lines
284 B
Bash
Executable File
14 lines
284 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Add local user
|
|
# Either use the LOCAL_USER_ID if passed in at runtime or
|
|
# fallback
|
|
|
|
USER_ID=${LOCAL_USER_ID:-9001}
|
|
|
|
echo "Starting with UID : $USER_ID"
|
|
useradd --shell /bin/bash -u "$USER_ID" -o -c "" -m user
|
|
export HOME=/home/user
|
|
|
|
exec /usr/local/bin/gosu user "$@"
|