summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-15 23:57:40 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-15 23:58:00 +0100
commitac188ec74baa758cd990a203ce0bbc317f92963e (patch)
treeb1ce38da1fea66782a683529dd672c11df4e8995
parent3210fe25649cf8c60e3d3c22cd86f9320115e5b2 (diff)
downloadnextcloud-server-ac188ec74baa758cd990a203ce0bbc317f92963e.tar.gz
nextcloud-server-ac188ec74baa758cd990a203ce0bbc317f92963e.zip
properly check for write permissions to the config file
-rw-r--r--lib/util.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 009119b54a9..20197d65b00 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -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;
}