[Pkg-samba-maint] ucf handling smb.conf
Steve Langasek
vorlon at debian.org
Wed Dec 11 18:03:19 UTC 2013
On Wed, Dec 11, 2013 at 04:52:24PM +0100, martin at fluxstatus.de wrote:
> Hello list,
> i hope this is the right place to ask the following question, i did not
> find something useful in the interwebs.
> I built my own package which ships a custom smb.conf with it.
> Because i saw that you do not provide a smb.conf, i looked around and
> saw that you do the conf-file handling with ucf.
> Therefore i thought it would be correct to move /etc/samba/smb.conf to
> my package in the ucf registry with my preinstall script.
> ucfr -f <my-package> /etc/samba/smb.conf
> Now there where some updates recently on one of the Ubuntu 12.04 boxes
> and there was also an update to samba-common, but the updates could not
> be installed. The error message was this:
> Setting up samba-common (2:3.6.3-2ubuntu2.9) ...
> ucfr: Attempt from package samba-common to take /etc/samba/smb.conf
> away from package is24-sssd
> ucfr: Aborting.
> dpkg: error processing samba-common (--configure):
> subprocess installed post-installation script returned error exit status 4
> My question now is, what would be the right way do provide a smb.conf
> file? I would like to avoid samba-common to overwrite my changes and any
> user interaction.
You probably want to use a configuration management system like puppet, not
a package. Debian policy stipulates that any config file has exactly one
owning package at a time; it's never correct to "steal" a config file from
the owning package, whether that's done with ucf or by other means.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20131211/a93d6231/attachment.sig>
More information about the Pkg-samba-maint
mailing list