Skip to content

Commit

Permalink
fix(studio): link user cache to global
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Jan 13, 2021
1 parent f25fad6 commit 9c858e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Studio.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ class Studio {
if (uid && gid && username) {
logger.info(`configuring container to use user: ${username}`);
await containerExec(container, 'adduser', '-u', `${uid}`, '-G', 'developer', '-D', username);
await containerExec(container, 'mkdir', '-p', `/home/${username}/.hab`);
await containerExec(container, 'ln', '-sf', '/hab/cache', `/home/${username}/.hab/`);
container.defaultUser = `${uid}:${gid}`;
}

Expand Down

0 comments on commit 9c858e8

Please sign in to comment.