update to python venv

This commit is contained in:
Usman Nasir
2019-12-13 11:05:18 +05:00
parent 2302fcbe89
commit 7df426e9b0
2 changed files with 5 additions and 5 deletions

View File

@@ -896,10 +896,10 @@ if [[ $DEV == "ON" ]] ; then
#install dev branch
#wget https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
cd /usr/local/
python3.6 -m venv CyberPanel
virtualenv -p /usr/bin/python3 CyberPanel
source /usr/local/CyberPanel/bin/activate
wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
pip3.6 install --ignore-installed -r requirements.txt
pip install --ignore-installed -r requirements.txt
cd -
fi
@@ -953,10 +953,10 @@ fi
if grep "CyberPanel installation successfully completed" /var/log/installLogs.txt > /dev/null; then
if [[ $DEV == "ON" ]] ; then
python3.6 -m venv /usr/local/CyberCP
virtualenv -p /usr/bin/python3 /usr/local/CyberCP
source /usr/local/CyberCP/bin/activate
wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
pip3.6 install --ignore-installed -r requirements.txt
pip install --ignore-installed -r requirements.txt
systemctl restart lscpd
fi

View File

@@ -1556,7 +1556,7 @@ imap_folder_list_limit = 0
os.chdir("wsgi-lsapi-1.4")
command = "python ./configure.py"
command = "/usr/local/CyberPanel/bin/python ./configure.py"
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
command = "make"