From: Silvio Rhatto Date: Sat, 18 May 2024 00:12:23 +0000 (-0300) Subject: Minor fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=376049d970385bdb2b851590ed49607c0005d248;p=puppet-backup.git Minor fix --- 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 \