mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-02 10:20:46 +01:00
fix lswsgi for python 3.8
This commit is contained in:
@@ -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 @@ imap_folder_list_limit = 0
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user