diff options
author | Shane McDonald <me@shanemcd.com> | 2019-01-12 03:18:56 +0100 |
---|---|---|
committer | Ryan Petrello <rpetrell@redhat.com> | 2019-01-15 20:09:05 +0100 |
commit | d27347292781327ccb2a8796bf6d383621b56301 (patch) | |
tree | dda063bd4bbc29dd53e881895eae8266dbf7827b /tools/scripts | |
parent | Dependency updates for Python 3 (diff) | |
download | awx-d27347292781327ccb2a8796bf6d383621b56301.tar.xz awx-d27347292781327ccb2a8796bf6d383621b56301.zip |
Enable py3 SCL if needed
Diffstat (limited to 'tools/scripts')
-rwxr-xr-x | tools/scripts/awx-python | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/scripts/awx-python b/tools/scripts/awx-python index f45c27bb80..776a2473b3 100755 --- a/tools/scripts/awx-python +++ b/tools/scripts/awx-python @@ -1,5 +1,14 @@ #!/bin/bash +# Enable needed Software Collections, if installed +for scl in rh-python36; do + 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 if [ -f /var/lib/awx/venv/awx/bin/activate ]; then . /var/lib/awx/venv/awx/bin/activate |