make preload data optional again

Signed-off-by: JAKUBIS Peter H50R8VA <peter.jakubis@erstegroup.com>
This commit is contained in:
JAKUBIS Peter H50R8VA
2020-12-02 16:17:25 +01:00
parent 29926ba5d9
commit a5f676c3e1
3 changed files with 6 additions and 5 deletions

View File

@@ -24,9 +24,6 @@ fi
if [ ! -z "$AWX_ADMIN_USER" ]&&[ ! -z "$AWX_ADMIN_PASSWORD" ]; then
echo "from django.contrib.auth.models import User; User.objects.create_superuser('$AWX_ADMIN_USER', 'root@localhost', '$AWX_ADMIN_PASSWORD')" | awx-manage shell
{% if create_preload_data | bool %}
awx-manage create_preload_data
{% endif %}
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