argo-cd/test/container/uid_entrypoint.sh
Abhishek Veeramalla 89a8751216
fix: argocd-test-server does not get removed/deleted upon SIGINT(#4969) (#5018)
Signed-off-by: iam-veeramalla <abhishek.veeramalla@gmail.com>
2020-12-10 08:04:32 +01:00

12 lines
No EOL
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
"$@"