Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#deploy configuration for each user. Change s3cfg.erb template in your site cookbook to set
#you access key and secret.
node[:s3cmd][:users].each do |user|
home = user.to_s == :root.to_s ? "/root" : "/home/#{user}"
home = `getent passwd #{user} | awk -F: '{print $(NF - 1)}'`.chop

template "s3cfg" do
path "#{home}/.s3cfg"
Expand Down