Server: Multiple config.php files are merged

Created on 4 Mar 2019  路  3Comments  路  Source: nextcloud/server

Steps to reproduce

  1. Update to/Install Nextcloud 15.0.5
  2. Migrate values from config.php to a custom config: custom.config.php
  3. Enable/disable maintenance mode

Expected behaviour

Config settings in custom.config.php should stay just in this file.

Actual behaviour

Nextcloud automatically duplicates all variables in custom.config.php into custom.php upon invocation of eg. maintenance mode (via occ).

Server configuration

Operating system: Ubuntu 16.04

Web server: Apache 2

Database: MariaDB

PHP version: 7.0

Nextcloud version: 15.0.5
Updated from an older Nextcloud/ownCloud or fresh install: both

Where did you install Nextcloud from: tar.bz2

0. Needs triage bug

Most helpful comment

https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-config-php-file

Hmm. Could you clarify? It looks wrong to me that these files are merged.

All 3 comments

This is actually a features. We merge this so you can have default config in place.

Just name it config.custom.php or config.php.custom. Just not *.config.php

https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-config-php-file

Hmm. Could you clarify? It looks wrong to me that these files are merged.

@rullzer
can you clarify?
comment/link by @kesselb make sense to me as well ... reading that, the files shouldn't be merged.

yet, with NC/head (atm v17), still seeing the same behavior @nblock reports

Was this page helpful?
0 / 5 - 0 ratings