1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-28 10:55:30 +03:00
awx/tools/scripts/awx-python

20 lines
523 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
2019-01-12 05:18:56 +03:00
# Enable needed Software Collections, if installed
for scl in rh-postgresql10; do
2019-01-12 05:18:56 +03:00
if [ -f /etc/scl/prefixes/$scl ]; then
if [ -f `cat /etc/scl/prefixes/$scl`/$scl/enable ]; then
. `cat /etc/scl/prefixes/$scl`/$scl/enable
fi
fi
done
# Enable Tower virtualenv
for venv_path in /var/lib/awx/venv/awx /venv/awx; do
if [ -f $venv_path/bin/activate ]; then
. $venv_path/bin/activate
fi
done
# Run the requested Python command, using the interpreter from the path
2019-01-18 08:03:33 +03:00
exec python3 "$@"