RE ISSUE-56: Prepend PATH and add PYTHONPATH to spawn env args

This commit is contained in:
Andrew Replogle 2015-12-29 17:33:14 +00:00
parent 48304ef4b5
commit 199b82a699
2 changed files with 11 additions and 6 deletions

View File

@ -131,7 +131,7 @@ function pullGit (task, playbook, done) {
USER: user,
TERM: 'xterm',
SHELL: '/bin/bash',
PATH: '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin',
PATH: process.env.PATH+':/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin',
LANG: 'en_GB.UTF-8'
}
});
@ -203,8 +203,9 @@ function playTheBook (task, playbook, done) {
USER: user,
TERM: 'xterm',
SHELL: '/bin/bash',
PATH: '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin',
PATH: process.env.PATH+':/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin',
LANG: 'en_GB.UTF-8',
PYTHONPATH: process.env.PYTHONPATH,
PYTHONUNBUFFERED: 1
}
});
@ -238,4 +239,4 @@ function playbookOutputHandler (chunk) {
});
console.log(chunk);
}
}

File diff suppressed because one or more lines are too long