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

14 lines
340 B
Bash
Executable File

#!/bin/sh
set -x
# ensure $HOME exists and is accessible by group 0 (we don't know what the runtime UID will be)
mkdir -p ${HOME}
chown ${USER_UID}:0 ${HOME}
chmod ug+rwx ${HOME}
# runtime user will need to be able to self-insert in /etc/passwd
chmod g+rw /etc/passwd
# no need for this script to remain in the image after running
rm $0