Skip to content

Commit

Permalink
fix lswsgi for python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed May 11, 2020
1 parent 1fbc276 commit 1d0ad17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions cyberpanel_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1d0ad17

Please sign in to comment.