Skip to content

Commit

Permalink
Ensure /etc/rpc-release ends in line-feed
Browse files Browse the repository at this point in the history
Unlike other release files in /etc, the rpc-release did not have a
proper line-feed at the end of the file.

- Change version recipe to add LF to /etc/rpc-release

Issue rcbops/chef-cookbooks#938

(cherry picked from commit af1beef)
  • Loading branch information
claco committed May 27, 2014
1 parent f34509e commit 8a9070c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
#

# drop the version of this converged release into a file for support purposes
version_string = run_context.cookbook_collection[cookbook_name].metadata.version

file "/etc/rpc-release" do
content run_context.cookbook_collection[cookbook_name].metadata.version
content "#{version_string}\n"
mode "0644"
owner "root"
group "root"
Expand Down

0 comments on commit 8a9070c

Please sign in to comment.