check write permission added into setup wizard and server status

This commit is contained in:
Čarodej
2022-03-14 10:51:19 +01:00
parent fe3fbe7db7
commit 2c4175b708
7 changed files with 71 additions and 6 deletions
@@ -12,7 +12,17 @@ class GetServerSetupStatusAction
$max_execution_time = 600;
$php_version = '8.0';
// Writable
$storageDirectory = dirname(storage_path('/storage'));
$bootstrapDirectory = dirname(storage_path('/bootstrap'));
$envFile = dirname(storage_path('/.env'));
return [
'writable' => [
'bootstrap' => is_writable($bootstrapDirectory),
'storage' => is_writable($storageDirectory),
'env' => is_writable($envFile),
],
'modules' => [
'tokenizer' => extension_loaded('tokenizer'),
'fileinfo' => extension_loaded('fileinfo'),