github.com/mkimuram/operator-sdk@v0.7.1-0.20190410172100-52ad33a4bda0/images/scorecard-proxy/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