Modification of configuration files in postinst
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I got a piuparts bug (582020) report because my package
(ldap-account-manager) changes configuration files when running postinst.
E.g. it asks the user via debconf to specify a master configuration
password. This is then written to the configuration file. Even if the
debconf dialog is not displayed postinst writes the config file (with a
default value).
This is the postinst code:
db_get "ldap-account-manager/passwd"
passwd="$RET"
perl -pi -e "s/password: .*/password: $passwd/g"
/etc/ldap-account-manager/config.cfg
Is there any way to mark a configuration file as unchanged after package
installation? Any other solutions?
Thanks in advance for your help.
- --
Best regards
Roland
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkwFShgACgkQq/ywNCsrGZ6ElgCfWJnkwJJxWNzXgBZK4jnk5dr0
tMkAn187ANSAu5Zn4alnvzXYPTKuyXG+
=dQ3T
-----END PGP SIGNATURE-----
Reply to: