From 9dcf3d1410f05547b843f5ea9af201974321c801 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Thu, 12 Dec 2019 06:56:07 +0500 Subject: [PATCH] remove venv --- install/install.py | 4 ++-- install/venvsetup.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/install/install.py b/install/install.py index dd4201b2d..f0ab1012e 100755 --- a/install/install.py +++ b/install/install.py @@ -520,11 +520,11 @@ class preFlightsChecks: logging.InstallLog.writeToFile("settings.py updated!") - self.setupVirtualEnv(self.distro) + ##self.setupVirtualEnv(self.distro) ### Applying migrations - os.chdir("CyberCP") + os.chdir("/usr/local/CyberCP") command = "/usr/local/CyberPanel/bin/python manage.py makemigrations" preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) diff --git a/install/venvsetup.sh b/install/venvsetup.sh index bf8eccdf3..892e0120b 100644 --- a/install/venvsetup.sh +++ b/install/venvsetup.sh @@ -1,4 +1,5 @@ python3.6 -m venv /usr/local/CyberCP source /usr/local/CyberCP/bin/activate wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/p3/requirments.txt -pip3.6 install --ignore-installed -r requirements.txt \ No newline at end of file +pip3.6 install --ignore-installed -r requirements.txt +python3.6 -m venv /usr/local/CyberCP \ No newline at end of file