Vlad the Deployer: Problems with Paths

Hi,

Having difficulty with Vlad - it’s throwing a hissy-fit, claiming it
can’t find Mongrel (it was SVN earlier…).

And interim solution (or “hack”) has been to put the full path to the
app inside the deploy.rb, but now I’ve tried starting the app, it
appears that mongrel is called by a wrapper, as the hack fails up to
that point.

Target platform: Mac OS 10.4 (and 10.5) Server
Path: /usr/local/bin and /usr/local/sbin in /etc/profile, /etc/bashrc,
~/.profile and ~/.bashrc

Using Vlad’s remote invoker, the $PATH env is showing incomplete.
Clearly, the way Vlad (or the library it’s using) is using SSH in some
bizzare way, as the $SHELL env is showing up as /bin/sh, rather than
bash.

I can’t find where the standard /bin:/sbin:/usr/bin:/usr/sbin paths are
seeded in 10.4 - I thought it was /etc/profile, but since it’s missing
half of the paths, I’m clearly wrong. With 10.5, it seems that
/etc/paths and /etc/paths.d are how they’re now seeded, with
/etc/profile also being used for overrides.

So, I’m between a rock and a hard place - I can’t find where or why the
path is not being loaded correctly.

Any ideas folks?!!?

Thanks,
Jon

Hey,

Found some solutions in case anybody is interested:

http://marc.info/?l=git&m=121378876831164&w=2

Earlier threads (May):

http://lists.apple.com/archives/macos-x-server/2008/May/msg00678.html
http://lists.apple.com/archives/macos-x-server/2008/Jun/msg00251.html

Appears this is OS X only, and related to non-interactive, no-login (key
file) SSH sessions.

Jon.