do not give the 'can't write config file' error when the config file doesn't exsist
This commit is contained in:
parent
540963060a
commit
3d546db141
|
@ -152,7 +152,7 @@ class OC_UTIL {
|
||||||
global $CONFIG_BACKUPDIRECTORY;
|
global $CONFIG_BACKUPDIRECTORY;
|
||||||
global $CONFIG_ENABLEBACKUP;
|
global $CONFIG_ENABLEBACKUP;
|
||||||
$error='';
|
$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.<br/>';
|
if(!$f) $error.='Error: Config file (config/config.php) is not writable for the webserver.<br/>';
|
||||||
@fclose($f);
|
@fclose($f);
|
||||||
if(!is_callable('sqlite_open') and !is_callable('mysql_connect')){
|
if(!is_callable('sqlite_open') and !is_callable('mysql_connect')){
|
||||||
|
|
Loading…
Reference in New Issue