aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-05-17 21:12:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-05-17 21:12:23 -0300
commit376049d970385bdb2b851590ed49607c0005d248 (patch)
tree3bddc0f37f5ad5dd9c4e28047e17bc3d31074fd7
parentb40c7aa2034b2296ed86b5e206777732ba9aff26 (diff)
downloadpuppet-backup-376049d970385bdb2b851590ed49607c0005d248.tar.gz
puppet-backup-376049d970385bdb2b851590ed49607c0005d248.tar.bz2
Minor fix
-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 \