From d6230bc9779bcf3e7be4247c4bf659e7f5e0bc06 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 6 Jun 2013 23:16:07 +0100 Subject: More PATH in RemoteEnvironment. --- cdist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdist b/cdist index cd45e74..844afd3 100755 --- a/cdist +++ b/cdist @@ -1,4 +1,4 @@ -#!/usr/bin/python +/#!/usr/bin/python # Copyright (C) 2012 Carl Hetherington # @@ -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('/') -- cgit v1.2.3