only check for permissions for folders that exists
This commit is contained in:
parent
d002ed0b94
commit
bf45dcb959
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue