Use absolute paths for permissions check #693

This commit is contained in:
Nabeel Shahzad 2020-05-15 15:42:57 -04:00
parent 8c75bd098e
commit 876457af71
3 changed files with 13 additions and 15 deletions

View File

@ -26,16 +26,16 @@ return [
// Make sure these are writable
'permissions' => [
'bootstrap/cache',
'public/uploads',
'storage',
'storage/app/public',
'storage/app/public/avatars',
'storage/app/public/uploads',
'storage/framework',
'storage/framework/cache',
'storage/framework/sessions',
'storage/framework/views',
'storage/logs',
base_path('bootstrap/cache'),
public_path('uploads'),
storage_path(),
storage_path('app/public'),
storage_path('app/public/avatars'),
storage_path('app/public/uploads'),
storage_path('framework'),
storage_path('framework/cache'),
storage_path('framework/sessions'),
storage_path('framework/views'),
storage_path('logs'),
],
];

View File

@ -2,7 +2,6 @@
@section('title', 'Install phpVMS')
@section('content')
<h2>phpvms installer</h2>
<p>Press continue to start</p>
{{ Form::open(['route' => 'installer.step1', 'method' => 'post']) }}
<p style="text-align: right">

View File

@ -55,9 +55,8 @@ class RequirementsService extends Service
clearstatcache();
$directories = [];
foreach (config('installer.permissions') as $dir) {
foreach (config('installer.permissions') as $path) {
$pass = true;
$path = base_path($dir);
if (!file_exists($path)) {
$pass = false;
@ -68,7 +67,7 @@ class RequirementsService extends Service
}
$directories[] = [
'dir' => $dir,
'dir' => $path,
'passed' => $pass,
];
}