Skip to content

Commit c443e22

Browse files
committed
use own repo during upgrade for pip
1 parent d00ed2f commit c443e22

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

cyberpanel_upgrade.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,14 @@ rm -rf /usr/local/CyberPanel
210210
virtualenv -p /usr/bin/python3 --system-site-packages /usr/local/CyberPanel
211211
check_return
212212
rm -f requirments.txt
213-
wget -O requirements.txt https://$GIT_CONTENT_URL/${BRANCH_NAME}/requirments.txt
213+
wget -O /usr/local/cyberpanel-pip.zip https://rep.cyberpanel.net/cyberpanel-pip.zip
214+
check_return
215+
unzip /usr/local/cyberpanel-pip.zip -d /usr/local
216+
check_return
214217
. /usr/local/CyberPanel/bin/activate
215218
check_return
219+
pip3.6 install --ignore-installed /usr/local/pip-packs/*
220+
check_return
216221

217222
if [ $SERVER_OS = "Ubuntu" ] ; then
218223
. /usr/local/CyberPanel/bin/activate
@@ -243,8 +248,6 @@ fi
243248
check_return
244249
virtualenv -p /usr/bin/python3 /usr/local/CyberCP
245250
check_return
246-
wget -O requirements.txt https://$GIT_CONTENT_URL/${BRANCH_NAME}/requirments.txt
247-
248251
if [ $SERVER_OS = "Ubuntu" ] ; then
249252
. /usr/local/CyberCP/bin/activate
250253
check_return
@@ -253,7 +256,7 @@ if [ $SERVER_OS = "Ubuntu" ] ; then
253256
else
254257
source /usr/local/CyberCP/bin/activate
255258
check_return
256-
pip3.6 install --ignore-installed -r requirements.txt
259+
pip3.6 install --ignore-installed /usr/local/pip-packs/*
257260
check_return
258261
fi
259262

0 commit comments

Comments
 (0)