Skip to content
Permalink
Browse files
fix lswsgi for python 3.8
  • Loading branch information
usmannasir committed May 11, 2020
1 parent 1fbc276 commit 1d0ad177432575b82be2241d2371620acff86665
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
@@ -305,11 +305,15 @@ fi

##

rm -f wsgi-lsapi-1.4.tgz
rm -f wsgi-lsapi-1.5.tgz
rm -f wsgi-lsapi-1.6.tgz
rm -rf wsgi-lsapi-1.4
wget http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.5.tgz
tar xf wsgi-lsapi-1.5.tgz
cd wsgi-lsapi-1.5
rm -rf wsgi-lsapi-1.5
rm -rf wsgi-lsapi-1.6
wget http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.6.tgz
tar xf wsgi-lsapi-1.6.tgz
cd wsgi-lsapi-1.6
/usr/local/CyberPanel/bin/python ./configure.py
make

@@ -1494,13 +1494,13 @@ def setupPort(self):
def setupPythonWSGI(self):
try:

command = "wget http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.4.tgz"
command = "wget http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.6.tgz"
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)

command = "tar xf wsgi-lsapi-1.4.tgz"
command = "tar xf wsgi-lsapi-1.6.tgz"
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)

os.chdir("wsgi-lsapi-1.4")
os.chdir("wsgi-lsapi-1.6")

command = "/usr/local/CyberPanel/bin/python ./configure.py"
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)

0 comments on commit 1d0ad17

Please sign in to comment.