aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/microservices/visualization-operator/build/bin/entrypoint
blob: f862b4840e582579b455e1e96f6c91412ebc43f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

# This is documented here:
# https://docs.openshift.com/container-platform/3.11/creating_images/guidelines.html#openshift-specific-guidelines

if ! whoami &>/dev/null; then
  if [ -w /etc/passwd ]; then
    echo "${USER_NAME:-visualization-operator}:x:$(id -u):$(id -g):${USER_NAME:-visualization-operator} user:${HOME}:/sbin/nologin" >> /etc/passwd
  fi
fi

exec ${OPERATOR} $@