diff options
author | Stefan <Stefan.Schilling@EXXETA.com> | 2021-09-13 17:44:32 +0300 |
---|---|---|
committer | Stefan <Stefan.Schilling@EXXETA.com> | 2021-09-17 14:32:42 +0300 |
commit | 8758b36ebb7f5db82271b9bebf692ae087886f6c (patch) | |
tree | 63b6d81eade53cd8c5847d82d669898b7e38f3ce /apps/settings/lib/Controller | |
parent | a6ef9dfe47613dc3d892a9df963906ed4210a5ab (diff) |
Issue 16719: CheckSetupController.php now checks configured temporary directory for existence and if it's writable
Signed-off-by: Stefan <Stefan.Schilling@EXXETA.com>
Diffstat (limited to 'apps/settings/lib/Controller')
-rw-r--r-- | apps/settings/lib/Controller/CheckSetupController.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index 3e239c15c1b..cb5fdd0622e 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -554,6 +554,16 @@ Raw output return extension_loaded('Zend OPcache'); } + private function isTemporaryDirectoryWritable(): bool { + try { + if (!empty(OC::$server->getTempManager()->getTempBaseDir())) { + return true; + } + } catch (\Exception $e) { + } + return false; + } + /** * Iterates through the configured app roots and * tests if the subdirectories are owned by the same user than the current user. @@ -779,6 +789,7 @@ Raw output CheckUserCertificates::class => ['pass' => $checkUserCertificates->run(), 'description' => $checkUserCertificates->description(), 'severity' => $checkUserCertificates->severity(), 'elements' => $checkUserCertificates->elements()], 'isDefaultPhoneRegionSet' => $this->config->getSystemValueString('default_phone_region', '') !== '', SupportedDatabase::class => ['pass' => $supportedDatabases->run(), 'description' => $supportedDatabases->description(), 'severity' => $supportedDatabases->severity()], + 'temporaryDirectoryWritable' => $this->isTemporaryDirectoryWritable(), ] ); } |