diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-06 23:16:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-06 23:16:07 +0100 |
| commit | d6230bc9779bcf3e7be4247c4bf659e7f5e0bc06 (patch) | |
| tree | 3b283c15d3914a9c258e3f6b2f089d5bceffe913 | |
| parent | 8fca6d612bb1f5282909c4050142c5d766bd7e37 (diff) | |
More PATH in RemoteEnvironment.
| -rwxr-xr-x | cdist | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -#!/usr/bin/python +/#!/usr/bin/python # Copyright (C) 2012 Carl Hetherington <cth@carlh.net> # @@ -277,7 +277,7 @@ class RemoteEnvironment(Environment): cwd = cwd[len(self.host_mount_dir):] log('ssh [%s] -> %s' % (cwd, c)) - command('ssh %s -- "PATH=/usr/bin cd %s%s; %s %s"' % (self.host, self.dir_on_host, cwd, self.variables_string(True), c)) + command('ssh %s -- "PATH=/usr/bin:/sbin cd %s%s; %s %s"' % (self.host, self.dir_on_host, cwd, self.variables_string(True), c)) def cleanup(self): os.chdir('/') |
