mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 06:28:01 -03:30
Web container does not need to wait for migration if the database is running and responsive, but migrations have not finished, it will start serving, and users will get the upgrading page wait-for-migration prevent nginix and uwsgi from starting up to serve the "upgrade in progress" status page
19 lines
362 B
Bash
Executable File
19 lines
362 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
|
|
|
|
exec supervisord -c /etc/supervisord_web.conf
|