seaweedfs-operator/build/bin/entrypoint
HarrisonZhu e7b1438ad4 feat(misc): init project use operator-sdk
init project use operator-sdk
2019-10-28 17:35:30 +08:00

13 lines
385 B
Bash
Executable File

#!/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:-seaweedfs-operator}:x:$(id -u):$(id -g):${USER_NAME:-seaweedfs-operator} user:${HOME}:/sbin/nologin" >> /etc/passwd
fi
fi
exec ${OPERATOR} $@