bootstrap: do not require the plugins dir to be writable

on a modern installation, the plugins folder does not need to be writable by the server. Perhaps DevTools should be checking this for /genplugin, but it's not required otherwise.
This commit is contained in:
Dylan K. Taylor 2022-12-06 13:58:50 +00:00
parent 3b32ea1b0b
commit a3306914cc
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -279,7 +279,7 @@ JIT_WARNING
}
//this has to be done after we're sure the data path exists
$dataPath = realpath($dataPath) . DIRECTORY_SEPARATOR;
if(!@mkdir($pluginPath, 0777, true) && (!is_dir($pluginPath) || !is_writable($pluginPath))){
if(!@mkdir($pluginPath, 0777, true) && !is_dir($pluginPath)){
critical_error("Unable to create plugin directory at $pluginPath. Check that the target location is accessible by the current user.");
exit(1);
}