From c858687c883ffa1a3eae3f6a9caed90a891faa5c Mon Sep 17 00:00:00 2001
From: pierreozoux <pierre@ozoux.net>
Date: Sun, 6 Sep 2015 13:20:39 +0100
Subject: [PATCH] Adds PASSPHRASE to duplicity command

---
 unit-files/backup-u@.service | 2 ++
 unit-files/backup@.service   | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/unit-files/backup-u@.service b/unit-files/backup-u@.service
index 8cd632d..a1e619b 100644
--- a/unit-files/backup-u@.service
+++ b/unit-files/backup-u@.service
@@ -10,6 +10,7 @@ ExecStartPre=/bin/bash -euxc ' \
   /bin/docker run \
     --rm \
     --name clean-%i \
+    -e PASSPHRASE \
     -v /root:/root \
     indiepaas/duplicity \
       remove-older-than 2W --force \
@@ -21,6 +22,7 @@ ExecStart=/bin/bash -euxc ' \
     --name backup-%i \
     -h backup.container \
     --cpu-shares=40 \
+    -e PASSPHRASE \
     -v /root:/root \
     -v /data/domains/%i:/backup indiepaas/duplicity \
       --full-if-older-than 1W \
diff --git a/unit-files/backup@.service b/unit-files/backup@.service
index d5a4876..0109e21 100644
--- a/unit-files/backup@.service
+++ b/unit-files/backup@.service
@@ -14,6 +14,7 @@ ExecStartPre=/bin/bash -euxc ' \
   /bin/docker run \
     --rm \
     --name clean-%i \
+    -e PASSPHRASE \
     -v /root:/root \
     indiepaas/duplicity \
       remove-older-than 2W --force \
@@ -40,6 +41,7 @@ ExecStart=/bin/bash -euxc ' \
     --rm \
     --name backup-%i \
     --cpu-shares=40 \
+    -e PASSPHRASE \
     -h backup.container \
     -v /root:/root \
     -v /data/domains/%i:/backup indiepaas/duplicity \
-- 
GitLab