diff options
-rwxr-xr-x | tools/ansible/roles/dockerfile/files/launch_awx.sh | 4 | ||||
-rwxr-xr-x | tools/ansible/roles/dockerfile/files/launch_awx_task.sh | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tools/ansible/roles/dockerfile/files/launch_awx.sh b/tools/ansible/roles/dockerfile/files/launch_awx.sh index ce90142cb4..ac5a204d65 100755 --- a/tools/ansible/roles/dockerfile/files/launch_awx.sh +++ b/tools/ansible/roles/dockerfile/files/launch_awx.sh @@ -13,7 +13,9 @@ if [ -n "${AWX_KUBE_DEVEL}" ]; then export SDB_NOTIFY_HOST=$MY_POD_IP fi -wait-for-migrations || exit 1 +set -e + +wait-for-migrations awx-manage collectstatic --noinput --clear diff --git a/tools/ansible/roles/dockerfile/files/launch_awx_task.sh b/tools/ansible/roles/dockerfile/files/launch_awx_task.sh index 2e0d1a9b10..ae1a87a6b0 100755 --- a/tools/ansible/roles/dockerfile/files/launch_awx_task.sh +++ b/tools/ansible/roles/dockerfile/files/launch_awx_task.sh @@ -13,6 +13,8 @@ if [ -n "${AWX_KUBE_DEVEL}" ]; then export SDB_NOTIFY_HOST=$MY_POD_IP fi -wait-for-migrations || exit 1 +set -e + +wait-for-migrations supervisord -c /etc/supervisord_task.conf |