Skip to content

Commit

Permalink
Fix malformed config if no passphrase set (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
strugee authored Mar 12, 2024
1 parent 702299f commit 84b0030
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ location:
# https://borgbackup.readthedocs.io/en/stable/usage/general.html#environment-variables for
# details.
storage:
{% if borg_encryption_passphrase %}
encryption_passphrase: {{ borg_encryption_passphrase }}

{% endif %}
# The standard output of this command is used to unlock the encryption key. Only
# use on repositories that were initialized with passcommand/repokey encryption.
# Note that if both encryption_passcommand and encryption_passphrase are set,
Expand Down

0 comments on commit 84b0030

Please sign in to comment.