Skip to content

Commit

Permalink
Studio.js: fix hab cache permissions on hosts without habitat install
Browse files Browse the repository at this point in the history
  • Loading branch information
lottspot authored and themightychris committed Dec 8, 2024
1 parent 659b543 commit ed3445f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Studio.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ class Studio {
await containerExec({ id: containerId }, 'adduser', '-u', `${uid}`, '-G', 'developer', '-D', username);
await containerExec({ id: containerId }, 'mkdir', '-p', `/home/${username}/.hab`);
await containerExec({ id: containerId }, 'ln', '-sf', '/hab/cache', `/home/${username}/.hab/`);
if (!artifactCachePath) await containerExec({ id: containerId }, 'chown', '-R', `${uid}:${gid}`, '/hab/cache');
defaultUser = `${uid}`;
}

Expand Down

0 comments on commit ed3445f

Please sign in to comment.