Thanks for the fix.

On Mar 21, 1:51 pm, Jonathan Julian <[EMAIL PROTECTED]>
wrote:
> *** [err :: myserver] sh: -c: line 0: syntax error near unexpected
> token `then'
> *** [err :: myserver] sh: -c: line 0: `sudo -p 'sudo password: ' -u
> scott if [ -f /u/app/current/tmp/pids/dispatch.spawner.pid ]; then /u/
> app/current/script/process/reaper -a kill -r dispatch.spawner.pid; fi'
>     command finished
>
> The 'command' passed to sudo cannot be separated by semis. Solution:
> make the command 'sh' and pass the real command in quotes.
>
> The fix can be made in lib/capistrano/recipes/deploy.rb:429
>
> invoke_command "sh -c 'if [ -f #{current_path}/tmp/pids/
> dispatch.spawner.pid ]; then #{current_path}/script/process/reaper -a
> kill -r dispatch.spawner.pid; fi'", :via => via, :as => as
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to