mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-01 09:50:44 +01:00
update connections during upgrade
This commit is contained in:
@@ -1959,6 +1959,16 @@ failovermethod=priority
|
||||
command = "pip3 install --ignore-installed -r %s" % ('/usr/local/CyberCP/WebTerminal/requirments.txt')
|
||||
Upgrade.executioner(command, 0)
|
||||
|
||||
@staticmethod
|
||||
def UpdateMaxSSLCons():
|
||||
command = "sed -i 's|<maxConnections>2000</maxConnections>|<maxConnections>10000</maxConnections>|g' /usr/local/lsws/conf/httpd_config.xml"
|
||||
Upgrade.executioner(command, 0)
|
||||
|
||||
command = "sed -i 's|<maxSSLConnections>200</maxSSLConnections>|<maxSSLConnections>10000</maxSSLConnections>|g' /usr/local/lsws/conf/httpd_config.xml"
|
||||
Upgrade.executioner(command, 0)
|
||||
|
||||
|
||||
|
||||
@staticmethod
|
||||
def upgrade():
|
||||
|
||||
@@ -2047,6 +2057,7 @@ failovermethod=priority
|
||||
## Upgrade version
|
||||
Upgrade.fixPermissions()
|
||||
Upgrade.upgradeVersion()
|
||||
Upgrade.UpdateMaxSSLCons()
|
||||
|
||||
try:
|
||||
command = "systemctl start lscpd"
|
||||
|
||||
Reference in New Issue
Block a user