aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/borg.sh.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/borg.sh.erb b/templates/borg.sh.erb
index 646a41c..6519814 100644
--- a/templates/borg.sh.erb
+++ b/templates/borg.sh.erb
@@ -131,7 +131,7 @@ if [ "<%= @encryption %>" == "keyfile" ] && [ ! -z "<%= @keyfile %>" ]; then
if [ ! -z "$GPG_KEY" ] && [ ! -z "$GPG_PASS" ]; then
info "Backing up the OpenPGP-encrypted repository key into the remote destination..."
- rm -f $BORG_KEY_FILE
+ rm -f $BORG_KEY_FILE.asc
echo $GPG_PASS | gpg --armor --encrypt --passphrase-fd 0 \
--recipient $GPG_KEY --default-key $GPG_KEY \