mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
RE ISSUE-56: Prepend PATH and add PYTHONPATH to spawn env args
This commit is contained in:
parent
48304ef4b5
commit
199b82a699
@ -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
Loading…
Reference in New Issue
Block a user