Re: preserving user changes while managing configuration files
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Dennis,
On 23.11.2011 11:48, Dennis van Dok wrote:
>> In case a sensible default is not possible, then ship without a config
>> file, and offer to generate one based on debconf answers if the file
>> does not exist.
>
> This sounds like a reasonable approach. I should probably do this with
> ucf as Alexander suggested.
please mind the exact wording here. A "configuration file" is not the
same as a "conffile" in Debian. Note, you are not allowed to modify a
conffile at any time.
When using a debhelper any file your package installs in /etc is
automatically marked as conffile. As such, you must not touch it (§
10.7.3) at all, nor is any other package or configuration program
allowed to touch it.
If you want to modify the configuration of your package at installation
time, you can do so by creating a configuration file your program
expects _at installation time_ in the maintainer script but it must not
be part of the package itself.
To preserve user changes or do a graceful updates of your dynamically
created configuration files, you may then manage your changes through
ucf as Alexander suggested.
- --
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJOzPZ0AAoJEMcrUe6dgPNtcakP/RbU3OjHW/WEqte0wp8r6hdr
uMxSuidbgHd6l67gm1oMSspbRRpSNv2aqYI6HsvhtJMpsfYIBKk5pex/LauC9aav
8kU7rcxz/a/YWTrdEWawfPLiO8PV6ZQ6UA5DFNp9aMUKSKsf6eS5h8dhaWBJkq37
N2CXZ8x9IdEqzQpHJqzT3RwwKHoPIzGZI/DUyTp5M4gvZXETWnvshhFy59q/hIch
7t2KCsHfXZP1UwN/kzpI7PYu5VKqCAhZcwzCrRVpZKkeCNZVzEdsxJ+JsJH+0iCx
04Np9oFX6G3nRpsyoz0ZfRfA42iXHv6wqD84Gw77E2osgJiaTcybqlriyBm1NQEn
jZ9zfIGpw8om/84jdK3zp6Vq7w6PFYJ10F/66eE23Sd3hOx40koRLGJWc/4m+6ZI
0p6nHuHzDsG4KbLlEwpBd++wxvQ5j1xdaqpnxUN0QZ2JcE2jF/tMgzq3y7XekHWf
2J/bEKuEalPJQCtfZQx/NCX0YBvB6kZ33liP7MMUtvqNTKIxxDome7FUvbQIi72A
8S+L/pDiBob4kL2X0P3iQTNyP74yrtJDEDXzXvgMN4No09ubQhJJvBcsV5wDexy8
xdzRFQ4SqqxojCb+Yb1xiGtptEhwAQKUTqM6L1EIsykg/URq8XBJt7bGGEvp7sqo
MLsjyptEicS53LFh0txt
=8QfZ
-----END PGP SIGNATURE-----
Reply to: