Lower the default uid by which we'll rewrite passwd

This fixes some issues with openshift under certain security policies
This commit is contained in:
Matthew Jones 2017-10-13 14:27:30 -04:00
parent ad0e43dc52
commit da5e6883d4
No known key found for this signature in database
GPG Key ID: 76A4C17A97590C1C
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
if [ `id -u` -ge 10000 ]; then
if [ `id -u` -ge 500 ]; then
echo "awx:x:`id -u`:`id -g`:,,,:/var/lib/awx:/bin/bash" >> /tmp/passwd
cat /tmp/passwd > /etc/passwd
rm /tmp/passwd

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
if [ `id -u` -ge 10000 ]; then
if [ `id -u` -ge 500 ]; then
echo "awx:x:`id -u`:`id -g`:,,,:/var/lib/awx:/bin/bash" >> /tmp/passwd
cat /tmp/passwd > /etc/passwd
rm /tmp/passwd