1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Merge pull request #6803 from ryanpetrello/devel

properly invoke the byte-compiled isolated job runner in production
This commit is contained in:
Ryan Petrello 2017-06-29 11:33:35 -04:00 committed by GitHub
commit 0f503c90ea

View File

@ -1,4 +1,4 @@
#!/bin/bash
AWX_LIB=`/var/lib/awx/venv/tower/bin/python -c 'import os, awx; print os.path.dirname(awx.__file__)'`
. /var/lib/awx/venv/tower/bin/activate
exec env TOWER_LIB_DIRECTORY=$AWX_LIB/lib $AWX_LIB/main/isolated/run.py "$@"
exec env TOWER_LIB_DIRECTORY=$AWX_LIB/lib /var/lib/awx/venv/tower/bin/python $AWX_LIB/main/isolated/run.pyc "$@"