set $HOME via an API call so AWX_TASK_ENV isn't marked as readonly

see: https://github.com/ansible/awx/issues/1315
This commit is contained in:
Ryan Petrello
2018-02-26 16:35:36 -05:00
parent 9493b72f29
commit 7741de5153
4 changed files with 1 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ else
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'root@localhost', 'password')" | awx-manage shell
awx-manage create_preload_data
fi
echo 'from django.conf import settings; x = settings.AWX_TASK_ENV; x["HOME"] = "/var/lib/awx"; settings.AWX_TASK_ENV = x' | awx-manage shell
awx-manage provision_instance --hostname=$(hostname)
awx-manage register_queue --queuename=tower --instance_percent=100
supervisord -c /supervisor_task.conf