From 187bf7bab0aa30dd8edf1f1eee1cd9e7d6c89455 Mon Sep 17 00:00:00 2001
From: Carson Page <pagem.carson@gmail.com>
Date: Mon, 16 Oct 2017 13:48:16 -0500
Subject: [PATCH] Add the stable duplicity PPA to get latest version This is
 required to use B2Blaze and other backends.

---
 setup/system.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/setup/system.sh b/setup/system.sh
index 254b6be5..85df1aa4 100755
--- a/setup/system.sh
+++ b/setup/system.sh
@@ -129,6 +129,16 @@ hide_output add-apt-repository -y ppa:ondrej/php
 apt_add_repository_to_unattended_upgrades LP-PPA-ondrej-php:trusty
 hide_output apt-get update
 
+# ### Add duplicity PPA
+
+# We would use the package in the system repository, but the version in the system repo
+# does not support some backends like B2Blaze. This adds the stable PPA that should be
+# reasonably reliable. This also enables the ability for duplicity to be upgraded to the 
+# latest version. Since the relibility of this package affects the stabillity of system
+# backups, unintended upgrades are not enabled.
+
+hide_output add-apt-repository -y ppa:duplicity-team/ppa
+hide_output apt-get update
 
 # ### Suppress Upgrade Prompts
 # Since Mail-in-a-Box might jump straight to 18.04 LTS, there's no need