Re: undo configuration file changes
On 31-May-07, 04:17 (CDT), Pascal.Speck@t-systems.com wrote:
> In the Moment i'm packaging some software and wonder if there is a
> possibility to handle files such as crontab or configuration files of
> other programs to add a directive with postinst but also to remove that
> directive with prerm. Is there a predefined possibility for that or do I
> have to implement this in a script?
As Kushal pointed out, packages that expect to interact with other
random packages (e.g. cron with /etc/cron.d) often provide a
subdirectory that they read. Some others provide a program interface to
modify configuration (e.g. update-rc.d).
Other than that, it's usually a bad idea to attempt to modify other
packages' configuration files. If it's a conffile, it's explicitly
forbidden by policy. See policy 10.7 and especially 10.7.4.
The irony is that Bill Gates claims to be making a stable operating
system and Linus Torvalds claims to be trying to take over the
world. -- seen on the net