mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-09 02:21:34 +02:00
bug fix: lswsgi
This commit is contained in:
@@ -123,33 +123,6 @@ class Upgrade:
|
||||
except BaseException as msg:
|
||||
Upgrade.stdOut(str(msg) + " [mountTemp]", 0)
|
||||
|
||||
@staticmethod
|
||||
def setupPythonWSGI():
|
||||
try:
|
||||
|
||||
cwd = os.getcwd()
|
||||
|
||||
command = "wget http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.4.tgz"
|
||||
Upgrade.executioner(command, 0)
|
||||
|
||||
command = "tar xf wsgi-lsapi-1.4.tgz"
|
||||
Upgrade.executioner(command, 0)
|
||||
|
||||
os.chdir("wsgi-lsapi-1.4")
|
||||
|
||||
command = "/usr/local/CyberPanel/bin/python ./configure.py"
|
||||
Upgrade.executioner(command, 0)
|
||||
|
||||
command = "make"
|
||||
Upgrade.executioner(command, 0)
|
||||
|
||||
command = "cp lswsgi /usr/local/CyberCP/bin/"
|
||||
Upgrade.executioner(command, 0)
|
||||
|
||||
os.chdir(cwd)
|
||||
|
||||
except:
|
||||
return 0
|
||||
|
||||
@staticmethod
|
||||
def dockerUsers():
|
||||
@@ -263,6 +236,10 @@ class Upgrade:
|
||||
|
||||
@staticmethod
|
||||
def setupComposer():
|
||||
|
||||
if os.path.exists('composer.sh'):
|
||||
os.remove('composer.sh')
|
||||
|
||||
command = "wget https://cyberpanel.sh/composer.sh"
|
||||
Upgrade.executioner(command, 0)
|
||||
|
||||
@@ -2081,7 +2058,6 @@ service_port = 9000
|
||||
|
||||
Upgrade.installPHP73()
|
||||
Upgrade.setupCLI()
|
||||
Upgrade.setupPythonWSGI()
|
||||
Upgrade.someDirectories()
|
||||
Upgrade.installLSCPD()
|
||||
Upgrade.GeneralMigrations()
|
||||
|
||||
@@ -63,7 +63,21 @@ virtualenv -p /usr/bin/python3 /usr/local/CyberCP
|
||||
source /usr/local/CyberCP/bin/activate
|
||||
wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/$1/requirments.txt
|
||||
pip3.6 install --ignore-installed -r requirements.txt
|
||||
|
||||
|
||||
##
|
||||
|
||||
rm -f wsgi-lsapi-1.4.tgz
|
||||
wget http://www.litespeedtech.com/packages/lsapi/wsgi-lsapi-1.4.tgz
|
||||
tar xf wsgi-lsapi-1.4.tgz
|
||||
cd wsgi-lsapi-1.4
|
||||
/usr/local/CyberPanel/bin/python ./configure.py
|
||||
make
|
||||
cp lswsgi /usr/local/CyberCP/bin/
|
||||
|
||||
##
|
||||
|
||||
systemctl restart lscpd
|
||||
|
||||
|
||||
echo " CyberPanel Upgraded Installed "
|
||||
echo " CyberPanel Upgraded "
|
||||
Reference in New Issue
Block a user