docker.images/ansible.awx/awx-17.1.0/tools/docker-compose/entrypoint.sh

15 lines
236 B
Bash
Executable File

#!/bin/bash
if [ `id -u` -ge 500 ] || [ -z "${CURRENT_UID}" ]; then
cat << EOF > /tmp/passwd
root:x:0:0:root:/root:/bin/bash
awx:x:`id -u`:`id -g`:,,,:/tmp:/bin/bash
EOF
cat /tmp/passwd > /etc/passwd
rm /tmp/passwd
fi
exec $@