Try adding them to the following file of the user you're connecting as.
~/.ssh/environmentWorked for me as sshd executes this file at login. See http://unixhelp.ed.ac.uk/CGI/man-cgi?sshd+8 for more info.
Isak wrote:
I have an issue with environment variables, namely path, not being set correctly for capistrano's deploy tasks (2.0.0, if that matters). I've found some related posts here, but those seem to cover the single- user-with-no-root-access scenario. I'd really like to update the settings system wide, as we have more than one user deploying, and on the server itself rather than in the deploy script. I've tried adding "export PATH=$PATH:/var/lib/gems/1.8/bin" to /etc/ profile, /etc/bash.bashrc and /etc/login.defs, but neither of seems to affect the path seen by capistrano. Thanks, Isak --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME Cryptographic Signature
