Skip to content

Commit

Permalink
bug fix: specify venv version
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Feb 11, 2020
1 parent cb254ff commit ef317b3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions cyberpanel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,11 @@ if [[ $DEV == "ON" ]] ; then
dnf install python3 -y
check_return
fi
pip3.6 install virtualenv
if [[ $SERVER_OS == "CentOS" ]] ; then
pip3.6 install virtualenv==16.7.9
else
pip3.6 install virtualenv
fi
check_return
fi
fi
Expand Down Expand Up @@ -1130,7 +1134,12 @@ if [[ $PROVIDER == "Alibaba Cloud" ]] ; then
pip install setuptools==40.8.0
fi

pip install virtualenv
if [[ $SERVER_OS == "CentOS" ]] ; then
pip install virtualenv==16.7.9
else
pip install virtualenv
fi

virtualenv --system-site-packages /usr/local/CyberPanel
source /usr/local/CyberPanel/bin/activate
rm -rf requirements.txt
Expand Down Expand Up @@ -1588,4 +1597,4 @@ pip_virtualenv

system_tweak

main_install
main_install

0 comments on commit ef317b3

Please sign in to comment.