Skip to content
Snippets Groups Projects
Commit bf45dcb9 authored by Robin Appelman's avatar Robin Appelman
Browse files

only check for permissions for folders that exists

parent d002ed0b
No related branches found
No related tags found
No related merge requests found
......@@ -292,7 +292,7 @@ class OC_UTIL {
}else{
//TODO: premisions checks for windows hosts
}
if(!is_writable($CONFIG_DATADIRECTORY_ROOT)){
if(is_dir($CONFIG_DATADIRECTORY_ROOT) and !is_writable($CONFIG_DATADIRECTORY_ROOT)){
$errors[]=array('error'=>'Data directory ('.$CONFIG_DATADIRECTORY_ROOT.') not writable by ownCloud<br/>','hint'=>$permissionsHint);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment