X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=docs%2Fscripts%2Fsphinx-make.sh;h=b00fb228ca751d6ac43e3eeb798a41076834a0b7;hb=5c1e48c01b50ddbd7623228e3dbc94d835d23813;hp=61356bb1b8fad364e27edaab348565f31dde2041;hpb=a26f54421ae61b1a42c2ff69d3037c428aa238f4;p=vpp.git 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