Skip to content

Commit a8a6a77

Browse files
committed
Fix file permissions
1 parent cb66102 commit a8a6a77

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/Commands/InitStack.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function handle(): int
6060
} else {
6161
$available = collect($this->getAvailableRuntimes())->join(', ', ' and ');
6262
$this->error("
63-
63+
6464
Failed to load the {$runtime} runtime, the requested runtime not supported.
6565
Only {$available} are supported.
6666
");
@@ -102,7 +102,16 @@ private function resolveRuntimes()
102102
foreach ($runtimes as $runtime) {
103103
$runtimeName = pathinfo($runtime, PATHINFO_BASENAME);
104104
$this->runtimes[$runtimeName] = $runtime;
105-
$this->devstackStorage()->move($runtime, 'runtimes/' . $runtimeName);
105+
$this->devstackStorage()->move($runtime, 'runtimes/' . $runtimeName, [
106+
'file' => [
107+
'public' => 0755,
108+
'private' => 0755,
109+
],
110+
'dir' => [
111+
'public' => 0755,
112+
'private' => 0755,
113+
],
114+
]);
106115
}
107116
$this->devstackStorage()->deleteDirectory('tmp');
108117
}

0 commit comments

Comments
 (0)