mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-22 15:32:05 +01:00
@@ -2047,6 +2047,8 @@ milter_default_action = accept
|
||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||
command = 'yum install -y restic'
|
||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||
command = 'restic self-update'
|
||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||
|
||||
else:
|
||||
command = 'apt-get update -y'
|
||||
@@ -2054,6 +2056,9 @@ milter_default_action = accept
|
||||
|
||||
command = 'apt-get install restic -y'
|
||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||
|
||||
command = 'restic self-update'
|
||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||
|
||||
except:
|
||||
pass
|
||||
|
||||
@@ -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:
|
||||
@@ -2349,6 +2351,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():
|
||||
|
||||
Reference in New Issue
Block a user