Skip to content

Commit 1d0ad17

Browse files
committed
fix lswsgi for python 3.8
1 parent 1fbc276 commit 1d0ad17

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

cyberpanel_upgrade.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,15 @@ fi
305305

306306
##
307307

308+
rm -f wsgi-lsapi-1.4.tgz
308309
rm -f wsgi-lsapi-1.5.tgz
310+
rm -f wsgi-lsapi-1.6.tgz
309311
rm -rf wsgi-lsapi-1.4
310-
wget http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.5.tgz
311-
tar xf wsgi-lsapi-1.5.tgz
312-
cd wsgi-lsapi-1.5
312+
rm -rf wsgi-lsapi-1.5
313+
rm -rf wsgi-lsapi-1.6
314+
wget http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.6.tgz
315+
tar xf wsgi-lsapi-1.6.tgz
316+
cd wsgi-lsapi-1.6
313317
/usr/local/CyberPanel/bin/python ./configure.py
314318
make
315319

install/install.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,13 +1494,13 @@ def setupPort(self):
14941494
def setupPythonWSGI(self):
14951495
try:
14961496

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

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

1503-
os.chdir("wsgi-lsapi-1.4")
1503+
os.chdir("wsgi-lsapi-1.6")
15041504

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

0 commit comments

Comments
 (0)