Skip to content

Commit

Permalink
Set the HOME variable correctly (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
magmastonealex authored Feb 28, 2020
1 parent 4ea6f6c commit fe3df05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion envy/lib/docker_manager/container_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def exec(self, command: str, as_user: bool = False, relpath: str = None):
if as_user:
groups = ",".join(str(x) for x in os.getgroups())
userspec = str(os.getuid()) + ":" + str(os.getgid())
command_inside_project = "/usr/sbin/chroot --groups={} --userspec={} / /bin/bash --noprofile -c 'cd {}; {}'".format(
command_inside_project = "/usr/sbin/chroot --groups={} --userspec={} / /bin/bash -c 'export HOME=/uhome; cd {}; {}'".format(
groups,
userspec,
ENVY_CONFIG.get_project_mount_path(),
Expand Down

0 comments on commit fe3df05

Please sign in to comment.