[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Question on rm_conffile

On 2021-02-22 09:09 -0500, Tong Sun wrote:

>> On Mon, Feb 22, 2021 at 12:33 AM Tong Sun wrote:
>> > Can I use rm_conffile to remove a (conffile) directory?
>> >
>> > I checked the man page but am still not too sure about that.
> I am still not too sure about the above yet.

If you want to remove the directory, you need to do it yourself.
Something like

rmdir --ignore-fail-on-non-empty /etc/whatever

after the #DEBHELPER# line in the postinst script should do it, I think.
Unfortunately, dpkg-maintscript-helper is not very helpful here, see


Reply to: