aboutsummaryrefslogtreecommitdiffstats
path: root/docs/scripts
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2020-12-07 10:57:46 -0500
committerDave Wallace <dwallacelf@gmail.com>2020-12-07 19:02:31 +0000
commit3227e49689974e2dd3aea4d85debdf159d532b42 (patch)
treed28114a2e89d9e2861c78e91480fd8b8bc650218 /docs/scripts
parentfe909a6288e028863233f521c33391191fb57f2f (diff)
docs: Fix CentOS 8 build
Type: fix Signed-off-by: Jon Loeliger <jdl@netgate.com> Change-Id: I2d0d29af9186c50735d9a3b41148549f5cde614e
Diffstat (limited to 'docs/scripts')
-rwxr-xr-xdocs/scripts/sphinx-make.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/scripts/sphinx-make.sh b/docs/scripts/sphinx-make.sh
index 61356bb1b8f..b00fb228ca7 100755
--- a/docs/scripts/sphinx-make.sh
+++ b/docs/scripts/sphinx-make.sh
@@ -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