Merge pull request #11924 from owncloud/firstCheckIfItIsDefaultConfig
First check whether it is the default config before touching
This commit is contained in:
commit
7f1d974796
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class Config {
|
||||||
|
|
||||||
// Include file and merge config
|
// Include file and merge config
|
||||||
foreach ($configFiles as $file) {
|
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
|
// Writing to the main config might not be possible, e.g. if the wrong
|
||||||
// permissions are set (likely on a new installation)
|
// permissions are set (likely on a new installation)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue