github.com/argoproj-labs/argocd-operator@v0.10.0/build/bin/user_setup (about) 1 #!/bin/sh 2 set -x 3 4 # ensure $HOME exists and is accessible by group 0 (we don't know what the runtime UID will be) 5 echo "${USER_NAME}:x:${USER_UID}:0:${USER_NAME} user:${HOME}:/sbin/nologin" >> /etc/passwd 6 mkdir -p "${HOME}" 7 chown "${USER_UID}:0" "${HOME}" 8 chmod ug+rwx "${HOME}" 9 10 # no need for this script to remain in the image after running 11 rm "$0"