properly check for write permissions to the config file

This commit is contained in:
Robin Appelman 2012-01-15 23:57:40 +01:00
parent 3210fe2564
commit ac188ec74b
1 changed files with 4 additions and 0 deletions

View File

@ -226,6 +226,10 @@ class OC_Util {
$errors[]=array('error'=>'PHP module ctype is not installed.<br/>','hint'=>'Please ask your server administrator to install the module.');
}
if(!is_writeable(OC::$SERVERROOT."/config/config.php")){
$errors[]=array('error'=>"Can't write into config directory 'config'",'hint'=>"You can usually fix this by giving the webserver use write access to the config directory in owncloud");
}
return $errors;
}