i have ssh-agent setup for the user www-data and the password saved for the private key
from root i need to run “sudo -u www-data git pull” so it doesn’t ask for the git private key password. sudo doesn’t run the .bashrc script so not sure how to pull this off?
any suggestions?
Perhaps you want the
-ioption? Fromman sudo: