mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
23 lines
415 B
Bash
Executable File
23 lines
415 B
Bash
Executable File
#!/usr/bin/env bash
|
|
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
|
|
fi
|
|
|
|
if [ -n "${AWX_KUBE_DEVEL}" ]; then
|
|
pushd /awx_devel
|
|
make awx-link
|
|
popd
|
|
|
|
export SDB_NOTIFY_HOST=$MY_POD_IP
|
|
fi
|
|
|
|
set -e
|
|
|
|
wait-for-migrations
|
|
|
|
awx-manage provision_instance
|
|
|
|
exec supervisord -c /etc/supervisord_task.conf
|