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