mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
Signed-off-by: Alexander Matyushentsev <[email protected]>
12 lines
274 B
Bash
Executable File
12 lines
274 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
|
|
|
|
"$@" |