mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 09:16:11 +01:00
Update upgrade.py
This commit is contained in:
@@ -2341,6 +2341,8 @@ echo $oConfig->Save() ? 'Done' : 'Error';
|
||||
if Upgrade.installedOutput.find('restic') == -1:
|
||||
command = 'yum install restic -y'
|
||||
Upgrade.executioner(command, 'Install Restic')
|
||||
command = 'restic self-update'
|
||||
Upgrade.executioner(command, 'Install Restic')
|
||||
else:
|
||||
|
||||
if Upgrade.installedOutput.find('restic/bionic,now 0.8') == -1:
|
||||
@@ -2350,6 +2352,9 @@ echo $oConfig->Save() ? 'Done' : 'Error';
|
||||
command = 'apt-get install restic -y'
|
||||
Upgrade.executioner(command, 'Install Restic')
|
||||
|
||||
command = 'restic self-update'
|
||||
Upgrade.executioner(command, 'Install Restic')
|
||||
|
||||
@staticmethod
|
||||
def UpdateMaxSSLCons():
|
||||
command = "sed -i 's|<maxConnections>2000</maxConnections>|<maxConnections>10000</maxConnections>|g' /usr/local/lsws/conf/httpd_config.xml"
|
||||
|
||||
Reference in New Issue
Block a user