diff options
Diffstat (limited to '')
-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 |