Skip to content

Commit

Permalink
Set permissions for tester directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed Aug 16, 2024
1 parent bea867a commit b47437c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/models/course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ export default class Course {
if (testerDir) {
await exec(`rm -rf ${repositoryDir}/tester`);
await exec(`cp -r ${testerDir} ${repositoryDir}/tester`);

// Set permissions for tester directory (ensure the new "owner" will be able to read and execute)
await exec(`chmod -R o+rwX ${repositoryDir}/tester`);
} else {
await exec(`mkdir -p ${repositoryDir}/tester`); // Create dummy dir
}
Expand Down

0 comments on commit b47437c

Please sign in to comment.