File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 6262 cwd new_resource . release_path
6363 # seems that if we don't set the HOME env var pip tries to log to /root/.pip, which fails due to permissions
6464 # setting HOME also enables us to control pip behavior on per-project basis by dropping off a pip.conf file there
65- environment 'HOME' => ::File . join ( new_resource . path , 'shared' )
65+ # GIT_SSH allow us to reuse the deployment key used to clone the main
66+ # repository to clone any private requirements
67+ if new_resource . deploy_key
68+ environment 'HOME' => ::File . join ( new_resource . path , 'shared' ) , 'GIT_SSH' => "#{ new_resource . path } /deploy-ssh-wrapper"
69+ else
70+ environment 'HOME' => ::File . join ( new_resource . path , 'shared' )
71+ end
6672 user new_resource . owner
6773 group new_resource . group
6874 end
You can’t perform that action at this time.
0 commit comments