diff --git a/install/install.py b/install/install.py index 5eb8b4070..88a2e5bd8 100755 --- a/install/install.py +++ b/install/install.py @@ -1931,6 +1931,14 @@ milter_default_action = accept command = "yum install -y libattr-devel xz-devel gpgme-devel mariadb-devel curl-devel" preFlightsChecks.call(command, distro, command, command, 1, 1, os.EX_OSERR) + ## + + command = "chmod +x venvsetup.sh" + preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) + + command = "./venvsetup.sh" + preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) + except OSError as msg: logging.InstallLog.writeToFile('[ERROR] ' + str(msg) + " [setupVirtualEnv]") return 0 diff --git a/install/lscp.tar.gz b/install/lscp.tar.gz index fc59b3081..374600cd0 100644 Binary files a/install/lscp.tar.gz and b/install/lscp.tar.gz differ diff --git a/install/venvsetup.sh b/install/venvsetup.sh new file mode 100644 index 000000000..bf8eccdf3 --- /dev/null +++ b/install/venvsetup.sh @@ -0,0 +1,4 @@ +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