]> source.dussan.org Git - nextcloud-server.git/commitdiff
properly check for write permissions to the config file
authorRobin Appelman <icewind@owncloud.com>
Sun, 15 Jan 2012 22:57:40 +0000 (23:57 +0100)
committerRobin Appelman <icewind@owncloud.com>
Sun, 15 Jan 2012 22:58:00 +0000 (23:58 +0100)
lib/util.php

index 009119b54a94f458ba5f52e15bfb6f65d7d57980..20197d65b001d1e46cdd73bc44d600a2c2bb5ec4 100644 (file)
@@ -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;
        }