fix(installer): attempt to create cache directory
This commit is contained in:
parent
e42c9262ef
commit
262608544f
1 changed files with 10 additions and 2 deletions
|
@ -94,6 +94,14 @@ switch ($step) {
|
||||||
* Check prerequisites
|
* Check prerequisites
|
||||||
*/
|
*/
|
||||||
case 2:
|
case 2:
|
||||||
|
$directoryCache = ROOT . '/src/cache';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attempt to create the cache directory, since it doesn't exist by
|
||||||
|
* default.
|
||||||
|
*/
|
||||||
|
@\mkdir($directoryCache);
|
||||||
|
|
||||||
$prerequisites = [
|
$prerequisites = [
|
||||||
[
|
[
|
||||||
'filename' => __('PHP Version >= 8.1'),
|
'filename' => __('PHP Version >= 8.1'),
|
||||||
|
@ -117,13 +125,13 @@ switch ($step) {
|
||||||
[
|
[
|
||||||
'filename' => '/src/cache',
|
'filename' => '/src/cache',
|
||||||
'icon' => 'folder',
|
'icon' => 'folder',
|
||||||
'condition' => \file_exists(ROOT . '/src/cache') && \is_dir(ROOT . '/src/cache'),
|
'condition' => \file_exists($directoryCache) && \is_dir($directoryCache),
|
||||||
'label' => __('Exists'),
|
'label' => __('Exists'),
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'filename' => '/src/cache',
|
'filename' => '/src/cache',
|
||||||
'icon' => 'folder',
|
'icon' => 'folder',
|
||||||
'condition' => \is_writeable(ROOT . '/src/cache'),
|
'condition' => \is_writeable($directoryCache),
|
||||||
'label' => __('Writeable'),
|
'label' => __('Writeable'),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue