"Elliott Slaughter" <[EMAIL PROTECTED]> writes:

> I'm having a little trouble pushing to one of my remote darcs
> repositories. The essential problem is that the version installed on
> the server (1.0.9) isn't compatible with my version 2 repository, and
> I can't upgrade the darcs installation since I do not have
> administrative privileges.
>
> I managed to bypass this for personal use by copying darcs 2.0.2 into
> ~/bin, and adding ~/bin to my PATH in ~/.profile. However, this
> doesn't work for non-interactive logins (e.g. when calling darcs push)
> since bash won't read ~/.profile.

None of .profile, .bashrc, .bash_profile or $ENV will be sourced in
normal "ssh fooserv CMD" usage.  (When you run ssh without CMD, it
defaults to an interactive login shell, which is why most people don't
notice this.)

From the ssh(1) manpage:

    Additionally, ssh reads ~/.ssh/environment, and adds lines of the
    format “VARNAME=value” to the environment if the file exists and
    users are allowed to change their environment.  For more
    information, see the PermitUserEnvironment option in sshd_config(5).

I haven't tried this myself, because I haven't gotten around to
moving my "export FOO=$BAR" lines from ~/.profile to $ENV.  (Where
.ssh/environment would then be a symlink to $ENV.)

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to