-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix the issue that sudo
tasks hang on password input.
#105
Conversation
for sudo with asking for password.
👍 |
I think this helper should be part of capistrano so other gems can use it. |
Hi all I am working up native support for interactive sudo in SSHKit, and interactive commands are the first part of this. These are in SSHKit master, but unreleased - you could look to use an The other part of this problem is to work on the Command Map, so that calls to This is parked as I work on some unrelated cleanup in SSHKit, but I hope to be able to resume work on this soon. |
Thanks for chiming in here @robd I didn't want to force more work down your throat, just to put this issue on your radar as another possible use-case, and as evidence that your work is having a profound and useful impact :) |
@leehambley no probs - thank you. It's useful to be made aware of issues related to my work so please keep them coming. |
👍 I do not have sudo access but I do have write access to my nginx install directory. Can't use this feature unless it is sudoless |
@mathieugagne I'm not exactly sure which # Bottom of Capfile
module Capistrano
module DSL
def sudo(*args)
execute(*args)
end
end
end |
Yeah I could. Since the code is not that complicated I just took the parts of the gem I was interested in. start/stop/restart.. methods are done with runit in my case so I had to override quite a few parts. I basically took the templates and merged them with my recipes. Thanks! |
The sudo related tasks hang on the password input. It may be due to the deprecation of
sudo
in Capistrano 3. So I walkaround the issue by utilizing theask
method.