diff options
| author | 2021-01-02 11:14:23 -0500 | |
|---|---|---|
| committer | 2021-01-02 17:14:23 +0100 | |
| commit | 08d76967b0664ee668d9b508993b52c44c3bfa78 (patch) | |
| tree | 835aa85ded33b3d428a58c2bb93c07ca9d65f24e /lib/lib_install.php | |
| parent | ce9eb7b14c378526d9488f0eb20e663580e9f429 (diff) | |
Add temp folder check during install (#3312)
Before, the temp path was not check during install. With some configuration,
FRSS was not working because of a non-writable temp directory. It happened
with XAMPP on MacOS X but it might be the case for other platforms.
Now, the temp path is checked during install to make sure it is writable.
See #3310
Diffstat (limited to 'lib/lib_install.php')
| -rw-r--r-- | lib/lib_install.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/lib_install.php b/lib/lib_install.php index 14a614c2e..e67b3611c 100644 --- a/lib/lib_install.php +++ b/lib/lib_install.php @@ -43,6 +43,7 @@ function checkRequirements($dbType = '') { $mbstring = extension_loaded('mbstring'); $data = DATA_PATH && is_writable(DATA_PATH); $cache = CACHE_PATH && is_writable(CACHE_PATH); + $tmp = TMP_PATH && is_writable(TMP_PATH); $users = USERS_PATH && is_writable(USERS_PATH); $favicons = is_writable(join_path(DATA_PATH, 'favicons')); $http_referer = is_referer_from_same_domain(); @@ -63,12 +64,13 @@ function checkRequirements($dbType = '') { 'mbstring' => $mbstring ? 'ok' : 'ko', 'data' => $data ? 'ok' : 'ko', 'cache' => $cache ? 'ok' : 'ko', + 'tmp' => $tmp ? 'ok' : 'ko', 'users' => $users ? 'ok' : 'ko', 'favicons' => $favicons ? 'ok' : 'ko', 'http_referer' => $http_referer ? 'ok' : 'ko', 'message' => $message ?: 'ok', 'all' => $php && $curl && $pdo && $pcre && $ctype && $dom && $xml && - $data && $cache && $users && $favicons && $http_referer && $message == '' ? 'ok' : 'ko' + $data && $cache && $tmp && $users && $favicons && $http_referer && $message == '' ? 'ok' : 'ko' ); } |
