Hi, i currently try to setup an rails project with deprec (http://deprec.org). i have executed the command "deprec --apply-to ." in my rails project directory and edited the condig/deploy.rb. Then i have tried "cap install_rails_stack" and i got the following erros message:>> command "sudo groups daniel | grep '' deploy '' || sudo /usr/sbin/usermod -G deploy -a daniel" failed on www.host.cominvalid option -a know anybody what i could do ? regards daniel -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I have edited the file --> /deprec-1.9.0/lib/deprec/capistrano_extension/deprec_extensions.rb i have removed the parenthesis from the expression "grep ''#{group}''" and added the user ''daniel'' manually to the group ''deploy''. <code> # add group to the list of groups this user belongs to def add_user_to_group(user, group) send(run_method, "groups #{user} | grep ''#{group}'' || sudo /usr/sbin/usermod -G #{group} -a #{user}") end </code> this works for me. regards daniel -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
i have removed the blanks from the expression "grep '' #{group} ''" and added the user ''daniel'' manually to the group ''deploy''. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---