From 84b003058199fb63fec06c85357b554f15fe6a82 Mon Sep 17 00:00:00 2001 From: AJ Jordan Date: Tue, 12 Mar 2024 04:44:43 -0400 Subject: [PATCH] Fix malformed config if no passphrase set (#148) --- templates/config.yaml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/config.yaml.j2 b/templates/config.yaml.j2 index dc7b485..bcc5d08 100644 --- a/templates/config.yaml.j2 +++ b/templates/config.yaml.j2 @@ -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,