From 3d7ebb8e4d7858c3ff46145fe9041c5ba8ddbbdd Mon Sep 17 00:00:00 2001 From: nickchomey <88559987+nickchomey@users.noreply.github.com> Date: Thu, 28 Apr 2022 19:40:39 -0600 Subject: [PATCH 1/2] restic self-update restic has a self-update function that will upgrade to the latest stable version. Right now, ubuntu 20.04 uses 0.9.6 but the latest stable is 0.13.1 --- install/install.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install/install.py b/install/install.py index 5f3f0e5fc..33f398537 100755 --- a/install/install.py +++ b/install/install.py @@ -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 From 2f16bb6aa3a278d4fd8e6021ef0cbde0fd047adb Mon Sep 17 00:00:00 2001 From: nickchomey <88559987+nickchomey@users.noreply.github.com> Date: Thu, 28 Apr 2022 19:42:04 -0600 Subject: [PATCH 2/2] Update upgrade.py --- plogical/upgrade.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 7ac13c973..581f2a61d 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -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():