diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-16 20:27:08 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-16 20:27:08 +0200 |
commit | bf45dcb959a4afbfcfb158dea55acf3804c49ea9 (patch) | |
tree | b52b1ac1b3e9f3ceec4da6fba24047194d31cfa8 /lib/base.php | |
parent | d002ed0b944ec2ed269d2aedd589a51b64c67a60 (diff) | |
download | nextcloud-server-bf45dcb959a4afbfcfb158dea55acf3804c49ea9.tar.gz nextcloud-server-bf45dcb959a4afbfcfb158dea55acf3804c49ea9.zip |
only check for permissions for folders that exists
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 7e862b978b1..05ff4040b9d 100644 --- a/lib/base.php +++ b/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); } |