github.com/interconnectedcloud/qdr-operator@v0.0.0-20210826174505-576d2b33dac7/build/bin/entrypoint (about)

     1  #!/bin/sh -e
     2  
     3  # This is documented here:
     4  # https://docs.openshift.com/container-platform/3.11/creating_images/guidelines.html#openshift-specific-guidelines
     5  
     6  if ! whoami &>/dev/null; then
     7    if [ -w /etc/passwd ]; then
     8      echo "${USER_NAME:-qdr-operator}:x:$(id -u):$(id -g):${USER_NAME:-qdr-operator} user:${HOME}:/sbin/nologin" >> /etc/passwd
     9    fi
    10  fi
    11  
    12  exec ${OPERATOR} $@