From 3ccf7410ea2d206e18414e82b3563353e32fe0f7 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Mon, 12 Apr 2010 16:00:17 -0700 Subject: [PATCH] Add local dir's to path. SSH and SU respect paths in etc environment Review URL: http://codereview.chromium.org/1650001 --- mod_for_test_scripts/350addTestAuthKeys | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod_for_test_scripts/350addTestAuthKeys b/mod_for_test_scripts/350addTestAuthKeys index cc3967db22..07da2e26cb 100755 --- a/mod_for_test_scripts/350addTestAuthKeys +++ b/mod_for_test_scripts/350addTestAuthKeys @@ -7,10 +7,14 @@ # Copy public keys to root's homedir for ssh pubkey auth, which # is necessary for test automation. -echo "Copying public keys" +echo "Copying public keys and changing PATH for ssh clients" KEYS_DIR=${GCLIENT_ROOT}/src/scripts/mod_for_test_scripts/ssh_keys mkdir -p ${ROOT_FS_DIR}/root/.ssh ROOT_AUTHKEYS=${ROOT_FS_DIR}/root/.ssh/authorized_keys cat ${KEYS_DIR}/*.pub >> ${ROOT_AUTHKEYS} +# Environment on test machines for su and ssh now set to include +touch ${ROOT_FS_DIR}/etc/environment +echo "PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" \ + >> "${ROOT_FS_DIR}/etc/environment"