diff options
author | juanvallejo <jvallejo@redhat.com> | 2017-07-12 15:18:48 -0400 |
---|---|---|
committer | Luke Meyer <lmeyer@redhat.com> | 2017-07-18 14:02:10 -0400 |
commit | 5497673a7b5a7c07d3e99d77d028447acbdd36a5 (patch) | |
tree | cfda08c072b85c36570c218e6c2020621f264dba /images/installer/root/usr/local/bin/user_setup | |
parent | 742203529902ba278c213e326f81f667304b9625 (diff) | |
download | openshift-5497673a7b5a7c07d3e99d77d028447acbdd36a5.tar.gz openshift-5497673a7b5a7c07d3e99d77d028447acbdd36a5.tar.bz2 openshift-5497673a7b5a7c07d3e99d77d028447acbdd36a5.tar.xz openshift-5497673a7b5a7c07d3e99d77d028447acbdd36a5.zip |
image builds: remove dependency on playbook2image
We do not need the builder functionality from playbook2image and the
resulting image was overly complicated, so this simply builds on
Centos/RHEL.
Diffstat (limited to 'images/installer/root/usr/local/bin/user_setup')
-rwxr-xr-x | images/installer/root/usr/local/bin/user_setup | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/images/installer/root/usr/local/bin/user_setup b/images/installer/root/usr/local/bin/user_setup new file mode 100755 index 000000000..b76e60a4d --- /dev/null +++ b/images/installer/root/usr/local/bin/user_setup @@ -0,0 +1,17 @@ +#!/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 + +# ensure that the ansible content is accessible +chmod -R g+r ${WORK_DIR} +find ${WORK_DIR} -type d -exec chmod g+x {} + + +# no need for this script to remain in the image after running +rm $0 |