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

don't depend on vi #19

Closed
ilf opened this issue Apr 8, 2018 · 3 comments
Closed

don't depend on vi #19

ilf opened this issue Apr 8, 2018 · 3 comments

Comments

@ilf
Copy link

ilf commented Apr 8, 2018

Using crontab -e without vi installed results in the error: /bin/sh: /usr/bin/vi: No such file or directory.
Please don't hard-depend on vi. As fallback, it's sane. But please prefer my setting in $EDITOR. Thanks.

@t8m
Copy link
Member

t8m commented Apr 9, 2018

Which version of cronie do you have? The current version already respects $EDITOR if set.

@ilf
Copy link
Author

ilf commented Apr 9, 2018

Running cronie 1.5.1.

You're right, $EDITOR is respected. Just not with something like sudo crontab -u nobody -e, there it starts vi. But crontab -u nobody -e in a root-shell uses $EDITOR. Must be something about env with sudo.

Sorry for the noise.

@ilf ilf closed this as completed Apr 9, 2018
@t8m
Copy link
Member

t8m commented Apr 9, 2018

Yes, sudo clears such environment variables for security reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants