I'm using a git post-update hook to run a command via sudo, and I get the error: sudo: sorry, you must have a tty to run sudo. I believe I need to modify /etc/sudoers but I don't know how to do this. Any help would be appreciated!
sudo: sorry, you must have a tty to run sudo
If you have the line
in your sudoers file, comment it out.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
2 years ago