From: Robin Appelman Date: Mon, 16 Jan 2012 19:17:45 +0000 (+0100) Subject: dont complain about non existing config files X-Git-Tag: v3.0~38^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=941f199caf99c75c322c0d4892b2e2a5d45f384d;p=nextcloud-server.git dont complain about non existing config files --- diff --git a/lib/util.php b/lib/util.php index 20197d65b00..09513d32328 100644 --- a/lib/util.php +++ b/lib/util.php @@ -226,7 +226,7 @@ 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")){ + if(file_exists(OC::$SERVERROOT."/config/config.php") and !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"); }