Skip to content

Commit

Permalink
Fix ownership of the directory where actions are installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
esteve committed May 18, 2023
1 parent 6b283d3 commit 35580d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ function buildUserDataScript(githubRegistrationToken, label) {
];
}
if (config.input.runAsUser) {
userData.push(`chown -R ${config.input.runAsUser} ${config.input.runnerHomeDir}`);
userData.push(`chown -R ${config.input.runAsUser} .`);
}
if (config.input.runAsService) {
userData.push(`./svc.sh install ${config.input.runAsUser || ''}`);
userData.push('./svc.sh start');
} else {
userData.push(`${config.input.runAsUser ? `su ${config.input.runAsUser} -c` : ''} ./run.sh`);
userData.push(`${config.input.runAsUser ? `su ${config.input.runAsUser} -c` : ''} ./run.sh`);
}
return userData;
}
Expand Down

0 comments on commit 35580d0

Please sign in to comment.