Skip to content

Commit 4920ddd

Browse files
committed
Merge pull request poise#72 from comandrei/COOK-4183
COOK-4183 Set $HOME to new owner as in the pip provider when shelling ou...
2 parents 8ce88cd + 2cc384b commit 4920ddd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎providers/virtualenv.rb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def whyrun_supported?
3737
execute"#{virtualenv_cmd}#{interpreter}#{new_resource.options}#{new_resource.path}"do
3838
usernew_resource.ownerifnew_resource.owner
3939
groupnew_resource.groupifnew_resource.group
40+
environment({'HOME'=> ::Dir.home(new_resource.owner)})ifnew_resource.owner
4041
end
4142
new_resource.updated_by_last_action(true)
4243
end

0 commit comments

Comments
(0)