Skip to content

Commit

Permalink
Merge pull request #1212 from lonyai/lonyai-patch-pip3.6-on-centos-9-…
Browse files Browse the repository at this point in the history
…upgrade

Lonyai patch pip3.6 on centos 9 upgrade
  • Loading branch information
usmannasir authored Feb 12, 2024
2 parents 13284d2 + b75b491 commit 43d3248
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions cyberpanel_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,13 @@ if [ "$Server_OS" = "Ubuntu" ]; then
pip3 install --default-timeout=3600 virtualenv==16.7.9
Check_Return
else
pip3.6 install --default-timeout=3600 virtualenv==16.7.9
Check_Return
if [ -e /usr/bin/pip3 ]; then
PIP3="/usr/bin/pip3"
else
PIP3="pip3.6"
fi
$PIP3 install --default-timeout=3600 virtualenv==16.7.9
Check_Return
fi

if [[ -f /usr/local/CyberPanel/bin/python2 ]]; then
Expand All @@ -518,9 +523,9 @@ fi
Download_Requirement

if [[ "$Server_OS" = "CentOS" ]] ; then
pip3.6 install --default-timeout=3600 virtualenv==16.7.9
$PIP3 install --default-timeout=3600 virtualenv==16.7.9
Check_Return
pip3.6 install --default-timeout=3600 --ignore-installed -r /usr/local/requirments.txt
$PIP3 install --default-timeout=3600 --ignore-installed -r /usr/local/requirments.txt
Check_Return
elif [[ "$Server_OS" = "Ubuntu" ]] ; then
# shellcheck disable=SC1091
Expand Down Expand Up @@ -613,7 +618,7 @@ else
# shellcheck disable=SC1091
source /usr/local/CyberCP/bin/activate
Check_Return
pip3.6 install --default-timeout=3600 --ignore-installed -r /usr/local/requirments.txt
$PIP3 install --default-timeout=3600 --ignore-installed -r /usr/local/requirments.txt
Check_Return
fi

Expand Down

0 comments on commit 43d3248

Please sign in to comment.