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

Can't execute command with "sudo" #16

Open
maimon33 opened this issue Jul 4, 2016 · 2 comments
Open

Can't execute command with "sudo" #16

maimon33 opened this issue Jul 4, 2016 · 2 comments
Labels
Milestone

Comments

@maimon33
Copy link

maimon33 commented Jul 4, 2016

I need to run a command with sudo.
When I try to pass command as "sudo cmd" it says it can't be found.

sudo serv generate "sudo vault" --name vault --args '-config=/opt/vault.hcl' --deploy --start
INFO - Generating upstart files for service vault...
INFO - Generated /tmp/upstart-vault/vault.conf
INFO - Deploying upstart service vault...
ERROR - Executable sudo vault could not be found.
@nir0s
Copy link
Owner

nir0s commented Oct 31, 2016

It's generally not a good practice to run things with sudo like. That being said, we can add a prefix flag which will allow to run something like

serv generate /usr/bin/python2 --args ... --prefix 'su -e' ...

@nir0s
Copy link
Owner

nir0s commented Nov 23, 2016

This will not be solved in 0.3.0. Will leave it for 0.4.0.

@nir0s nir0s added this to the 0.4.0 milestone Nov 23, 2016
@nir0s nir0s added the bug label Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants