mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 01:58:09 -03:30
Enable py3 SCL if needed
This commit is contained in:
committed by
Ryan Petrello
parent
5aa99b2ca1
commit
d273472927
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user