Skip to content

Commit a5d957c

Browse files
committed
change source of pip packages
1 parent 923f7c1 commit a5d957c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

cyberpanel.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -1082,9 +1082,11 @@ if [[ $DEV == "ON" ]] ; then
10821082
cd /usr/local/
10831083
virtualenv -p /usr/bin/python3 CyberPanel
10841084
source /usr/local/CyberPanel/bin/activate
1085-
wget -O requirements.txt https://$GIT_CONTENT_URL/${BRANCH_NAME}/requirments.txt
1085+
wget -O /usr/local/cyberpanel-pip.zip https://repo.cyberpanel.net/cyberpanel-pip.zip
10861086
check_return
1087-
pip3.6 install --ignore-installed -r requirements.txt
1087+
unzip /usr/local/cyberpanel-pip.zip -d /usr/local
1088+
check_return
1089+
pip3.6 install /usr/local/pip-packs/*
10881090
check_return
10891091
cd -
10901092
fi
@@ -1176,9 +1178,7 @@ EOF
11761178

11771179
virtualenv -p /usr/bin/python3 /usr/local/CyberCP
11781180
source /usr/local/CyberCP/bin/activate
1179-
wget -O requirements.txt https://$GIT_CONTENT_URL/${BRANCH_NAME}/requirments.txt
1180-
check_return
1181-
pip3.6 install --ignore-installed -r requirements.txt
1181+
pip3.6 install /usr/local/pip-packs/*
11821182
check_return
11831183
systemctl restart lscpd
11841184
fi

plogical/upgrade.py

-2
Original file line numberDiff line numberDiff line change
@@ -1987,8 +1987,6 @@ def installRestic():
19871987
CentOSPath = '/etc/redhat-release'
19881988

19891989
if os.path.exists(CentOSPath):
1990-
command = 'yum-config-manager --add-repo https://copr.fedorainfracloud.org/coprs/copart/restic/repo/epel-7/copart-restic-epel-7.repo'
1991-
Upgrade.executioner(command, 'Add restic repo.')
19921990

19931991
command = 'yum install restic -y'
19941992
Upgrade.executioner(command, 'Install Restic')

0 commit comments

Comments
 (0)