Use absolute paths for permissions check #693
This commit is contained in:
parent
8c75bd098e
commit
876457af71
@ -26,16 +26,16 @@ return [
|
|||||||
|
|
||||||
// Make sure these are writable
|
// Make sure these are writable
|
||||||
'permissions' => [
|
'permissions' => [
|
||||||
'bootstrap/cache',
|
base_path('bootstrap/cache'),
|
||||||
'public/uploads',
|
public_path('uploads'),
|
||||||
'storage',
|
storage_path(),
|
||||||
'storage/app/public',
|
storage_path('app/public'),
|
||||||
'storage/app/public/avatars',
|
storage_path('app/public/avatars'),
|
||||||
'storage/app/public/uploads',
|
storage_path('app/public/uploads'),
|
||||||
'storage/framework',
|
storage_path('framework'),
|
||||||
'storage/framework/cache',
|
storage_path('framework/cache'),
|
||||||
'storage/framework/sessions',
|
storage_path('framework/sessions'),
|
||||||
'storage/framework/views',
|
storage_path('framework/views'),
|
||||||
'storage/logs',
|
storage_path('logs'),
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
@section('title', 'Install phpVMS')
|
@section('title', 'Install phpVMS')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<h2>phpvms installer</h2>
|
|
||||||
<p>Press continue to start</p>
|
<p>Press continue to start</p>
|
||||||
{{ Form::open(['route' => 'installer.step1', 'method' => 'post']) }}
|
{{ Form::open(['route' => 'installer.step1', 'method' => 'post']) }}
|
||||||
<p style="text-align: right">
|
<p style="text-align: right">
|
||||||
|
@ -55,9 +55,8 @@ class RequirementsService extends Service
|
|||||||
clearstatcache();
|
clearstatcache();
|
||||||
|
|
||||||
$directories = [];
|
$directories = [];
|
||||||
foreach (config('installer.permissions') as $dir) {
|
foreach (config('installer.permissions') as $path) {
|
||||||
$pass = true;
|
$pass = true;
|
||||||
$path = base_path($dir);
|
|
||||||
|
|
||||||
if (!file_exists($path)) {
|
if (!file_exists($path)) {
|
||||||
$pass = false;
|
$pass = false;
|
||||||
@ -68,7 +67,7 @@ class RequirementsService extends Service
|
|||||||
}
|
}
|
||||||
|
|
||||||
$directories[] = [
|
$directories[] = [
|
||||||
'dir' => $dir,
|
'dir' => $path,
|
||||||
'passed' => $pass,
|
'passed' => $pass,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user