mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 16:47:45 -02:30
Force openshift user behavior for uids over 2500
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
set +x
|
set +x
|
||||||
|
|
||||||
if [ `id -u` -ge 500 ]; then
|
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
|
cat /tmp/passwd > /etc/passwd
|
||||||
rm /tmp/passwd
|
rm /tmp/passwd
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
set +x
|
set +x
|
||||||
|
|
||||||
if [ `id -u` -ge 500 ]; then
|
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
|
cat /tmp/passwd > /etc/passwd
|
||||||
rm /tmp/passwd
|
rm /tmp/passwd
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user