docs: Fix CentOS 8 build
Type: fix Signed-off-by: Jon Loeliger <jdl@netgate.com> Change-Id: I2d0d29af9186c50735d9a3b41148549f5cde614e
This commit is contained in:
Jon Loeliger
committed by
Dave Wallace
parent
fe909a6288
commit
3227e49689
@ -11,6 +11,7 @@ fi
|
||||
|
||||
# Get the OS
|
||||
OS_ID=$(grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
|
||||
OS_VERSION=$(grep '^VERSION_ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
|
||||
|
||||
if [ "$1" == "venv" ]
|
||||
then
|
||||
@ -21,7 +22,12 @@ then
|
||||
fi
|
||||
if [ "$OS_ID" == "centos" ]
|
||||
then
|
||||
sudo yum install $CONFIRM python3-venv
|
||||
if [ "$OS_VERSION" == "8" ]
|
||||
then
|
||||
sudo yum install $CONFIRM python3-virtualenv
|
||||
else
|
||||
sudo yum install $CONFIRM python3-venv
|
||||
fi
|
||||
fi
|
||||
|
||||
# Install the virtual environment
|
||||
|
Reference in New Issue
Block a user