First check whether it is the default config before touchign
Potentially fixes https://github.com/owncloud/core/issues/11678
This commit is contained in:
parent
13b18aafcc
commit
9790801268
|
@ -138,7 +138,7 @@ class Config {
|
|||
|
||||
// Include file and merge config
|
||||
foreach ($configFiles as $file) {
|
||||
if(!@touch($file) && $file === $this->configFilePath) {
|
||||
if($file === $this->configFilePath && !@touch($file)) {
|
||||
// Writing to the main config might not be possible, e.g. if the wrong
|
||||
// permissions are set (likely on a new installation)
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue