mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-04 20:36:07 +01:00
change source of pip packages
This commit is contained in:
@@ -1082,9 +1082,11 @@ if [[ $DEV == "ON" ]] ; then
|
||||
cd /usr/local/
|
||||
virtualenv -p /usr/bin/python3 CyberPanel
|
||||
source /usr/local/CyberPanel/bin/activate
|
||||
wget -O requirements.txt https://$GIT_CONTENT_URL/${BRANCH_NAME}/requirments.txt
|
||||
wget -O /usr/local/cyberpanel-pip.zip https://repo.cyberpanel.net/cyberpanel-pip.zip
|
||||
check_return
|
||||
pip3.6 install --ignore-installed -r requirements.txt
|
||||
unzip /usr/local/cyberpanel-pip.zip -d /usr/local
|
||||
check_return
|
||||
pip3.6 install /usr/local/pip-packs/*
|
||||
check_return
|
||||
cd -
|
||||
fi
|
||||
@@ -1176,9 +1178,7 @@ EOF
|
||||
|
||||
virtualenv -p /usr/bin/python3 /usr/local/CyberCP
|
||||
source /usr/local/CyberCP/bin/activate
|
||||
wget -O requirements.txt https://$GIT_CONTENT_URL/${BRANCH_NAME}/requirments.txt
|
||||
check_return
|
||||
pip3.6 install --ignore-installed -r requirements.txt
|
||||
pip3.6 install /usr/local/pip-packs/*
|
||||
check_return
|
||||
systemctl restart lscpd
|
||||
fi
|
||||
|
||||
@@ -1987,8 +1987,6 @@ failovermethod=priority
|
||||
CentOSPath = '/etc/redhat-release'
|
||||
|
||||
if os.path.exists(CentOSPath):
|
||||
command = 'yum-config-manager --add-repo https://copr.fedorainfracloud.org/coprs/copart/restic/repo/epel-7/copart-restic-epel-7.repo'
|
||||
Upgrade.executioner(command, 'Add restic repo.')
|
||||
|
||||
command = 'yum install restic -y'
|
||||
Upgrade.executioner(command, 'Install Restic')
|
||||
|
||||
Reference in New Issue
Block a user