Skip to content

Commit

Permalink
Fix for when app users are set up in a different location to /home
Browse files Browse the repository at this point in the history
  • Loading branch information
gerhard committed Mar 19, 2013
1 parent d58bf85 commit 036defb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/apps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
action app[:status]
end

rbenv_user(app[:name]) if node.include?(:rbenv) and app.fetch(:groups) { [] }.include?("rbenv")
if node.include?(:rbenv) && app.fetch(:groups) { [] }.include?("rbenv")
rbenv_user app[:name] do
home_basepath app[:home_basepath]
end
end

unless app[:status] == :delete
directory "/var/log/#{app[:name]}" do
Expand Down

0 comments on commit 036defb

Please sign in to comment.