From: Robin Appelman Date: Sun, 15 Jan 2012 22:57:40 +0000 (+0100) Subject: properly check for write permissions to the config file X-Git-Tag: v3.0~38^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ac188ec74baa758cd990a203ce0bbc317f92963e;p=nextcloud-server.git properly check for write permissions to the config file --- 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.
','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; }