summaryrefslogtreecommitdiff
path: root/yarns/obnam.sh
diff options
context:
space:
mode:
Diffstat (limited to 'yarns/obnam.sh')
-rw-r--r--yarns/obnam.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/yarns/obnam.sh b/yarns/obnam.sh
index 9eb5ea90..3d0a1b20 100644
--- a/yarns/obnam.sh
+++ b/yarns/obnam.sh
@@ -16,6 +16,14 @@
# =*= License: GPL-3+ =*=
+# Set GNUPGHOME so that we always a) use a safe gnupg dir and b) it's a
+# copy of the test dir.
+
+GNUPGHOME="$DATADIR/dot-gnupg"
+mkdir -p "$GNUPGHOME"
+rsync -a --delete "$SRCDIR/test-gpghome/." "$GNUPGHOME/."
+
+
# A helper to print an error message and terminate.
die()