]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Borg: fix BORG_KEY_FILE
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 26 May 2018 14:03:40 +0000 (11:03 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 26 May 2018 14:03:40 +0000 (11:03 -0300)
templates/borg.sh.erb

index 6c5e3ab7d06eda499eae82c46b537f9c6f06e417..652bfa01cbdbb209eecd8e208482ef4e71d1d5e3 100644 (file)
@@ -20,7 +20,7 @@ if [ "<%= @encryption %>" == "keyfile" ] && [ ! -z "<%= @keyfile %>" ]; then
     fatal "Keyfile not found: <%= @keyfile %>. Please create it manually."
   fi
 
-  export BORG_KEY_FILE="/root/.borg/hydra/key"
+  export BORG_KEY_FILE="<%= @keyfile %>"
 fi
 
 # some helpers and error handling: