From d27347292781327ccb2a8796bf6d383621b56301 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Fri, 11 Jan 2019 21:18:56 -0500 Subject: Enable py3 SCL if needed --- tools/scripts/awx-python | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tools/scripts') 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 -- cgit v1.2.3