Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e822c71

Browse files
committed
Set $HOME to new owner
1 parent b01c4a5 commit e822c71

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
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)