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

Re: force-confmiss does not work

> On 2012-03-11 17:31 +0100, Matus UHLAR - fantomas wrote:
>> I'm trying to reinstall smb.conf file as it came with samba-common.
>> However, even when I reinstall samba-common (into which it seems to
>> appear) with the force-confmiss option, it won't get reinstlled:

Sven Joachim <svenjoac@gmx.de> wrote:
> This happens because the file /etc/samba/smb.conf is managed with ucf(1)
> and not shipped in the package, hence dpkg does not know about it.

Thanks for explanation.
Is Debian leaving the old way of maintaining config files in favor of

>> How to get the file reinstalled, amongst purging and reinstalling it?
> Set the UCF_FORCE_CONFFMISS environment variable, e.g.
> # UCF_FORCE_CONFFMISS=1 apt-get --reinstall install samba-common
> should do the trick.

Maybe dpkg should set this variable when it's called with confmiss
option... it kindof sucks finding out that documented way to
restore config file does not work.
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Saving Private Ryan...
Private Ryan exists. Overwrite? (Y/N)

Reply to: