diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-06 22:59:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-06 22:59:52 +0100 |
| commit | 8fca6d612bb1f5282909c4050142c5d766bd7e37 (patch) | |
| tree | 9b66a3c8ee7e1a775ac9ebcd9597fc31de7f78c4 | |
| parent | 30d9888f8e015ad2e02d0c02670af958edeb3336 (diff) | |
Setup minimal PATH on ssh.
| -rwxr-xr-x | cdist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -277,7 +277,7 @@ class RemoteEnvironment(Environment): cwd = cwd[len(self.host_mount_dir):] log('ssh [%s] -> %s' % (cwd, c)) - command('ssh %s -- "cd %s%s; %s %s"' % (self.host, self.dir_on_host, cwd, self.variables_string(True), c)) + command('ssh %s -- "PATH=/usr/bin cd %s%s; %s %s"' % (self.host, self.dir_on_host, cwd, self.variables_string(True), c)) def cleanup(self): os.chdir('/') |
