]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Minor fix
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 18 May 2024 00:12:23 +0000 (21:12 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 18 May 2024 00:12:23 +0000 (21:12 -0300)
templates/borg.sh.erb

index 646a41cb4a96e16dc40182b6e404c214168abe1c..6519814a7ae1eaf371fa9f9944175857bb6f961a 100644 (file)
@@ -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 \