* Set NIX_REMOTE when logging in through SSH. Quick hack. Should really

figure out why the environment isn't initialised properly in
  non-interactive SSH logins.

svn path=/nixos/trunk/; revision=8136
This commit is contained in:
Eelco Dolstra 2007-03-01 15:31:05 +00:00
parent fb2a9d91a1
commit 1a66b71e2d
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ let
envConf = pkgs.writeText "environment" "
PATH=${systemPath}/bin:${systemPath}/sbin:${pkgs.openssh}/bin
NIX_REMOTE=daemon
" /* ${pkgs.openssh}/bin is a hack to get remote scp to work */;
in

View File

@ -13,6 +13,8 @@ fi
if test "$USER" != root; then
export NIX_REMOTE=daemon
else
export NIX_REMOTE=
fi