Re: undo configuration file changes
On 31-May-07, 04:17 (CDT), [EMAIL PROTECTED] 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. Steve -- Steve Greenland 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
undo configuration file changes
Hello, 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? Best Regards Pascal Speck
Re: undo configuration file changes
On 5/31/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, 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? Check out /etc/cron.d for setting up cron jobs for your package. I suppose other applications that could support such pluggable configurations have similar support. For example, apache2 lets you put stuff into /etc/apache2/conf.d, xinetd lets you put stuff in /etc/xinet.d, and so on. You should look into that. -- Kushal -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]