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