mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Improve dev environment init process
This ensures that /etc/passwd is always written, regardless of how the container starts.
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
#!/bin/bash
|
||||
set +x
|
||||
|
||||
if [ `id -u` -ge 500 ] || [ -z "${CURRENT_UID}" ]; then
|
||||
echo "root:x:0:0:root:/root:/bin/bash" > /tmp/password
|
||||
echo "awx:x:`id -u`:`id -g`:,,,:/tmp:/bin/bash" >> /tmp/passwd
|
||||
cat /tmp/passwd > /etc/passwd
|
||||
rm /tmp/passwd
|
||||
fi
|
||||
|
||||
# Wait for the databases to come up
|
||||
ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=postgres port=5432" all
|
||||
ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=memcached port=11211" all
|
||||
|
||||
Reference in New Issue
Block a user