Permission should be really fixed now
This commit is contained in:
parent
6dcfd35d31
commit
52c85408af
@ -121,24 +121,6 @@ class Configuration {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function checkPermissions() {
|
||||
$classes = array(
|
||||
\Configuration\Database::class,
|
||||
\Configuration\Mail::class,
|
||||
\Configuration\JWT::class
|
||||
);
|
||||
|
||||
$files = array();
|
||||
foreach($classes as $class) {
|
||||
$file = getClassPath($class);
|
||||
if(!is_writeable($file)) {
|
||||
$files[] = $file;
|
||||
}
|
||||
}
|
||||
|
||||
return $files;
|
||||
}
|
||||
};
|
||||
|
||||
?>
|
||||
|
@ -130,12 +130,10 @@ namespace Documents\Install {
|
||||
$success = true;
|
||||
$failedRequirements = array();
|
||||
|
||||
$unwriteableFiles = \Configuration\Configuration::checkPermissions();
|
||||
if(!empty($unwriteableFiles)) {
|
||||
foreach($unwriteableFiles as $file) {
|
||||
$failedRequirements[] = "<b>$file</b> is not writeable. Try running <b>chmod 600</b>";
|
||||
$success = false;
|
||||
}
|
||||
$configDir = "core/Configuration/";
|
||||
if(!is_writeable($configDir)) {
|
||||
$failedRequirements[] = "<b>$configDir</b> is not writeable. Try running <b>chmod 755</b>";
|
||||
$success = false;
|
||||
}
|
||||
|
||||
if(version_compare(PHP_VERSION, '7.1', '<')) {
|
||||
|
Loading…
Reference in New Issue
Block a user