4 ms·
I partially agree, but I think a good middleground is for default configuration to be in a place like /usr/share/, and allow for admin configuration to happen i
by Jasper_ 6y ago
I partially agree, but I think a good middleground is for default configuration to be in a place like /usr/share/, and allow for admin configuration to happen in /etc/. This way, if you upgrade, you don't need a complicated merge to merge new defaults + old configuration. I've seen a lot of configuration migrations gone wrong in my life.
- Blikkentrekker 6y agoThat would mitigate the problem of easily finding out what options there are, but it would still be a form of weak typing where a best guess is substituted for a mistake. If the system administrator truly intend for a value to be default, he should explicitly declare it so in the configuration file. Interpreting the system administrator's act of forgetting something as his intention for it to be a default value, seems like a bad idea to me. As for merge, I find it as annoying if software not support configuration directories. `foo.conf` should exist alongside `foo.conf.d`, and if the latter exist, it's contents should be parsed as well. On an update, the system can simply install a file in `foo.conf.d` which contains the default of any new keys added from the last version.