mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 08:37:48 -02: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
|
#!/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
|
# Enable Tower virtualenv
|
||||||
if [ -f /var/lib/awx/venv/awx/bin/activate ]; then
|
if [ -f /var/lib/awx/venv/awx/bin/activate ]; then
|
||||||
. /var/lib/awx/venv/awx/bin/activate
|
. /var/lib/awx/venv/awx/bin/activate
|
||||||
|
|||||||
Reference in New Issue
Block a user