mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-05 23:58:21 +00:00
12 lines
280 B
Bash
Executable file
12 lines
280 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
if test "$(id -u)" == "0" -a "${USER_ID}" != ""; then
|
|
useradd -u ${USER_ID} -d /home/user -s /bin/bash ${USER_NAME:-default}
|
|
chown -R "${USER_NAME:-default}" ${GOCACHE}
|
|
fi
|
|
|
|
export PATH=$PATH:/usr/local/go/bin:/go/bin
|
|
export GOROOT=/usr/local/go
|
|
|
|
exec "$@"
|