diff --git a/recipes/default.rb b/recipes/default.rb index bf4f228..1ebb36f 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -35,7 +35,7 @@ bash "copy authorized_keys" do cwd Chef::Config[:file_cache_path] - code %{ cp "#{all_key_file}" "#{authorized_keys}" } + code %{ cat "#{all_key_file}" >> "#{authorized_keys}" } not_if %{ diff "#{all_key_file}" "#{authorized_keys}" } end