1
0
Fork 0
mirror of synced 2024-09-30 09:18:14 +13:00

Fix permission bug

This commit is contained in:
Bradley Schofield 2022-01-17 15:23:35 +00:00
parent a10d099789
commit 76280b0d23

View file

@ -494,7 +494,7 @@ function runBuildStage(string $buildId, string $projectID, Database $database):
}
if (!\file_exists('/tmp/project-' . $projectID . '/' . $build->getId() . '/builtCode')) {
if (!\mkdir('/tmp/project-' . $projectID . '/' . $build->getId() . '/builtCode', 0755, true)) {
if (!\mkdir('/tmp/project-' . $projectID . '/' . $build->getId() . '/builtCode', 0777, true)) {
throw new Exception('Can\'t create directory /tmp/project-' . $projectID . '/' . $build->getId() . '/builtCode');
}
};