防止创建conffiles [英] Prevent creation of conffiles

查看:257
本文介绍了防止创建conffiles的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试建立一个包,其中有一些文件 / etc 不是配置。即使我在中创建了一个空的 package.conffiles ,它们也会自动包含在 conffiles debian 目录。

I'm trying to build a package which has some files under /etc that are not configuration. They are included in the conffiles automatically even if I create an empty package.conffiles in the debian directory.

如何停止 dh_installdeb >

How can I stop dh_installdeb from doing that?

推荐答案

本回答建议提供您自己的 debian / conffiles 配置文件要安装。显然,只有添加更多的配置文件,但不会覆盖整个 conffiles 文件。

Originally, this answer suggested providing your own debian/conffiles files only listing actual configuration files to be installed. Apparently that only serves to add more configuration files but won't override the whole conffiles file.

不能明白为什么你甚至会想要。如果文件不是配置文件,用户将不会编辑它们,所以自动conffile处理将不会在升级你的方式。此外,如果他们实际上不是配置文件,我强烈建议只是将它们安装到/ etc以外的地方,避免你的问题。

However, I can't quite see why you'd even want that. If the files are not configuration files, the user won't edit them, so none of the automatic conffile handling will get in your way on upgrades. Also, if they're not actually config files, I'd highly recommend to simply install them to a place other than /etc, avoiding your issue as well.

这篇关于防止创建conffiles的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆