Skip to content
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: cli - secator u install hangs on sudo prompt #205

Closed
ocervell opened this issue Feb 20, 2024 · 1 comment
Closed

fix: cli - secator u install hangs on sudo prompt #205

ocervell opened this issue Feb 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working install

Comments

@ocervell
Copy link
Contributor

ocervell commented Feb 20, 2024

Hangs on sudo prompt, prompt is not shown to user.
Two ways to fix:

  • either require user to type password: hard to wait for a prompt with the current implementation so might need to pass it secator u install --password <password>
  • change command fabric to something more involved like 'invoke':
from invoke.runners import Local
from invoke.context import Context
context = Context()
runner = Local(context)
runner.start(cmd) # will prompt user for password if sudo is required
while runner.process.stdout.readline():
  # same processing as normal
@ocervell ocervell self-assigned this Feb 20, 2024
@ocervell ocervell added bug Something isn't working install and removed bug Something isn't working labels Feb 20, 2024
@ocervell ocervell changed the title fix: cli - secator u install fails on some distribs fix: cli - secator u install hangs on sudo prompt Mar 16, 2024
@ocervell
Copy link
Contributor Author

ocervell commented Apr 3, 2024

Fixed by #213

@ocervell ocervell closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working install
Projects
None yet
Development

No branches or pull requests

1 participant