From bc1b64ced1f542ddc5ffebecae657cea7882b8ec Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 24 Nov 2010 18:38:13 -0500 Subject: [PATCH] Fix magent run command --- chef/cookbooks/common/recipes/daemontools.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chef/cookbooks/common/recipes/daemontools.rb b/chef/cookbooks/common/recipes/daemontools.rb index 6568571e5..eb4555b4c 100644 --- a/chef/cookbooks/common/recipes/daemontools.rb +++ b/chef/cookbooks/common/recipes/daemontools.rb @@ -43,7 +43,7 @@ execute "executable" do end execute "magent run" do - command "mkdir -p /service/magent && echo '#!/bin/sh' > /service/magent/run && echo 'cd /usr/local/app/diaspora && RAILS_ENV=production exec /usr/local/bin/ruby /usr/local/bin/magent start --log-path=log/' >> /service/magent/run" + command "mkdir -p /service/magent && echo '#!/bin/sh' > /service/magent/run && echo 'cd /usr/local/app/diaspora && RAILS_ENV=production exec /usr/local/bin/bundle exec /usr/local/bin/magent start --log-path=log/' >> /service/magent/run" end execute "executable" do command "chmod -R 755 /service/magent"