From: Robin Date: Sat, 22 May 2010 21:45:58 +0000 (+0200) Subject: do not give the 'can't write config file' error when the config file doesn't exsist X-Git-Tag: v3.0~382 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3d546db14184e599cb872887936e4f0399db6699;p=nextcloud-server.git do not give the 'can't write config file' error when the config file doesn't exsist --- diff --git a/inc/lib_base.php b/inc/lib_base.php index 506bca22108..3a8ad7163f8 100755 --- a/inc/lib_base.php +++ b/inc/lib_base.php @@ -152,7 +152,7 @@ class OC_UTIL { global $CONFIG_BACKUPDIRECTORY; global $CONFIG_ENABLEBACKUP; $error=''; - $f=@fopen($SERVERROOT.'/config/config.php','a+'); + $f=@fopen($SERVERROOT.'/config/config.php','w+'); if(!$f) $error.='Error: Config file (config/config.php) is not writable for the webserver.
'; @fclose($f); if(!is_callable('sqlite_open') and !is_callable('mysql_connect')){