Update upgrade.py

This commit is contained in:
nickchomey
2022-04-28 19:42:04 -06:00
committed by GitHub
parent 3d7ebb8e4d
commit 2f16bb6aa3

View File

@@ -2341,6 +2341,8 @@ echo $oConfig->Save() ? 'Done' : 'Error';
if Upgrade.installedOutput.find('restic') == -1: if Upgrade.installedOutput.find('restic') == -1:
command = 'yum install restic -y' command = 'yum install restic -y'
Upgrade.executioner(command, 'Install Restic') Upgrade.executioner(command, 'Install Restic')
command = 'restic self-update'
Upgrade.executioner(command, 'Install Restic')
else: else:
if Upgrade.installedOutput.find('restic/bionic,now 0.8') == -1: 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' command = 'apt-get install restic -y'
Upgrade.executioner(command, 'Install Restic') Upgrade.executioner(command, 'Install Restic')
command = 'restic self-update'
Upgrade.executioner(command, 'Install Restic')
@staticmethod @staticmethod
def UpdateMaxSSLCons(): def UpdateMaxSSLCons():