only check for permissions for folders that exists

remotes/origin/stable
Robin Appelman 14 years ago
parent d002ed0b94
commit bf45dcb959
  1. 2
      lib/base.php

@ -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…
Cancel
Save