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

Re: transitioning from conffile to ucf



On Thu, Oct 14, 2004 at 12:02:32PM +0200, martin f krafft wrote:
>   - save the conffile in the new preinst to /tmp and use it to seed
>     the new conffile in the new postinst. The problem here is that
>     I could potentially override a file in /tmp if I simply cp(1)'d
>     the file there. Using mktemp(1) however is not an option because
>     then the postinst does not know the filename.
>     
> [...]
>
> The second seems to be the cleanest solution, but I am also not
> happy with it. Is there another way?

How about installing the config file template into /usr/share/foo and 
copying it to the config dir in the postinst? (Policy 10.7.3)

-- 
Brian Sutherland



Reply to: