Add/update/delete PrometheusRemoteEndpoint CR
[demo.git] / vnfs / DAaaS / microservices / remote-config-operator / build / bin / entrypoint
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:-remote-config-operator}:x:$(id -u):$(id -g):${USER_NAME:-remote-config-operator} user:${HOME}:/sbin/nologin" >> /etc/passwd
9   fi
10 fi
11
12 exec ${OPERATOR} $@