Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Commit 4920ddd

Browse files
committed
Merge pull request #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

+1
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
user new_resource.owner if new_resource.owner
3939
group new_resource.group if new_resource.group
40+
environment ({ 'HOME' => ::Dir.home(new_resource.owner) }) if new_resource.owner
4041
end
4142
new_resource.updated_by_last_action(true)
4243
end

0 commit comments

Comments
 (0)