Skip to content

Commit

Permalink
Merge pull request #364 from lottspot/fix-habcache-perms
Browse files Browse the repository at this point in the history
Studio.js: fix hab cache permissions on hosts without habitat install
  • Loading branch information
themightychris authored Dec 8, 2024
2 parents 659b543 + ed3445f commit cf20bdb
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 cf20bdb

Please sign in to comment.