Permission should be really fixed now

This commit is contained in:
Roman Hergenreder 2020-04-02 21:57:06 +02:00
parent 6dcfd35d31
commit 52c85408af
2 changed files with 4 additions and 24 deletions

@ -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', '<')) {