github.com/interconnectedcloud/qdr-operator@v0.0.0-20210826174505-576d2b33dac7/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 mkdir -p ${HOME} 6 chown ${USER_UID}:0 ${HOME} 7 chmod ug+rwx ${HOME} 8 9 # runtime user will need to be able to self-insert in /etc/passwd 10 chmod g+rw /etc/passwd 11 12 # no need for this script to remain in the image after running 13 rm $0