-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config.php should preserve comments #32070
Comments
The config.php gets rewritten by ownCloud for various reasons, some being that an admin and apps can change settings there. I'm not sure if there's an easy way for PHP to parse the config and somehow keep the comments. Would require a different parse and approach. In the future we intend to consider different formats, maybe even move it to the database: #11843 In the meantime I'd recommend setting the config to read-only https://github.com/owncloud/core/blob/v10.0.9/config/config.sample.php#L602 so ownCloud will not overwrite the file. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
1.install owncloud 10.0.8
2.edit config.php (add comments on the end of line '//commnet'
3.visit site
Expected behaviour
ALL commnetrs should be preserved otherwise config php is unmanagable with any orchestartor like puppet.
Actual behaviour
Comments get strripped
Server configuration
Operating system:
Gentoo
Web server:
Apache 2.4
Database:
Postgresql 9.6
PHP version:
php fpm 7.1
ownCloud version: (see ownCloud admin page)
10.0.8
Updated from an older ownCloud or fresh install:
from older
Where did you install ownCloud from:
gentoo repository
Signing status (ownCloud 9.0 and above):
https://gist.github.com/samuraiii/e8417ace6036eb61fc5debeee51a892a
The content of config/config.php:
https://gist.github.com/samuraiii/1f8f842f291bfd132651f596ca99cbdc
List of activated apps:
Enabled:
Disabled:
Are you using external storage, if yes which one:
local
Are you using encryption:
no
The text was updated successfully, but these errors were encountered: