From fe9f2733fb2bc56ea6954f817b84d18d48adc101 Mon Sep 17 00:00:00 2001 From: Jeroen van Baarsen Date: Tue, 7 Oct 2014 09:01:04 +0200 Subject: [PATCH] Fixed a bug in the compression enabled flag Signed-off-by: Jeroen van Baarsen --- vendor/cookbooks/backups/attributes/default.rb | 1 - vendor/cookbooks/backups/recipes/default.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 vendor/cookbooks/backups/attributes/default.rb diff --git a/vendor/cookbooks/backups/attributes/default.rb b/vendor/cookbooks/backups/attributes/default.rb deleted file mode 100644 index 18d36e74..00000000 --- a/vendor/cookbooks/backups/attributes/default.rb +++ /dev/null @@ -1 +0,0 @@ -default["backups"]["compression_enabled"] = true diff --git a/vendor/cookbooks/backups/recipes/default.rb b/vendor/cookbooks/backups/recipes/default.rb index acc38a35..7ea88b6a 100644 --- a/vendor/cookbooks/backups/recipes/default.rb +++ b/vendor/cookbooks/backups/recipes/default.rb @@ -26,9 +26,9 @@ package "libxslt-dev" gem_package "backup" - compression_enabled = node[:backups][:compression_enabled] || true - backup_node.each do |app, backup_info| + compression_enabled = backup_info.fetch(:compression_enabled, true) + ["/home/#{deploy_user}/Backup", "/home/#{deploy_user}/Backup/models"].each do |path| directory path do owner deploy_user