Force openshift user behavior for uids over 2500

This commit is contained in:
Matthew Jones 2018-10-16 09:19:15 -04:00
parent 12c8994faf
commit 119b9475ea
No known key found for this signature in database
GPG Key ID: EED42EEB8B369E1E
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
set +x
if [ `id -u` -ge 500 ]; then
echo "awx:x:`id -u`:`id -g`:,,,:/var/lib/awx:/bin/bash" >> /tmp/passwd
echo "awx:x:`id -u`:`id -g`:,,,:/tmp:/bin/bash" >> /tmp/passwd
cat /tmp/passwd > /etc/passwd
rm /tmp/passwd
fi

View File

@ -2,7 +2,7 @@
set +x
if [ `id -u` -ge 500 ]; then
echo "awx:x:`id -u`:`id -g`:,,,:/var/lib/awx:/bin/bash" >> /tmp/passwd
echo "awx:x:`id -u`:`id -g`:,,,:/tmp:/bin/bash" >> /tmp/passwd
cat /tmp/passwd > /etc/passwd
rm /tmp/passwd
fi