From b257950d10849ecaea6eb729ed5fb81f8e209ee5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 20 Oct 2015 14:11:01 -0200 Subject: Fix variable deprecations on templates --- templates/duplicity.conf.erb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/duplicity.conf.erb b/templates/duplicity.conf.erb index 03c9342..6a4f68c 100644 --- a/templates/duplicity.conf.erb +++ b/templates/duplicity.conf.erb @@ -7,16 +7,16 @@ # # TODO: custom log file -BACKUP_FOLDER="<%= directory %>" -FULL_IF_OLDER_THAN="<%= full_if_older_than %>" -REMOVE_OLDER_THAN="<%= remove_older_than %>" -REMOVE_ALL_BUT_N_FULL="<%= remove_all_but_n_full %>" -ENCRYPT_KEY="<%= encryptkey %>" -SIGN_KEY="<%= encryptkey %>" -<% exclude_unencrypted.each do |del| -%> +BACKUP_FOLDER="<%= @directory %>" +FULL_IF_OLDER_THAN="<%= @full_if_older_than %>" +REMOVE_OLDER_THAN="<%= @remove_older_than %>" +REMOVE_ALL_BUT_N_FULL="<%= @remove_all_but_n_full %>" +ENCRYPT_KEY="<%= @encryptkey %>" +SIGN_KEY="<%= @encryptkey %>" +<% @exclude_unencrypted.each do |del| -%> EXCLUDE="$EXCLUDE --exclude <%= del %>" <% end -%> -<% include_unencrypted.each do |add| -%> +<% @include_unencrypted.each do |add| -%> INCLUDE="$INCLUDE --include <%= add %>" <% end -%> @@ -24,7 +24,7 @@ INCLUDE="$INCLUDE --include <%= add %>" TMP="/var/tmp" mkdir -p $TMP -export PASSPHRASE='<%= password %>' +export PASSPHRASE='<%= @password %>' mkdir -p $BACKUP_FOLDER # adds support for checking the existing backup -- cgit v1.2.3