[pkg-bacula-devel] 01/02: Remove leftover /etc/tmpfiles.d/bacula.conf if identical to new
Sven Hartge
sven at svenhartge.de
Mon Jul 18 16:01:20 UTC 2016
On 18.07.2016 17:50, Carsten Leonhardt wrote:
>> I think this can be improved:
>
> ok, you found it yourself already :-)
Yes, I had this unsatisfied feeling that there has to be something
pre-made, this being Debian and all.
And I vaguely remembered seeing messages during upgrades about conffiles
being renamed or removed. I just couldn't remember in what context I saw
those. But then I found
https://raphaelhertzog.com/2010/10/07/the-right-way-to-remove-an-obsolete-conffile-in-a-debian-package/
leading to https://wiki.debian.org/DpkgConffileHandling.
Before that I read the Maint Guide concerning when what script is
started with what parameters to find the moment where I can compare the
old with the new and remove it but only if the upgrade was from before a
specific version to after said version and was getting more and more
frustrated because postinst is the only place I have both files
available but postinst only gets the new version as parameter and not
the version we came from.
But fortunately I found the correct documentation to do it the right way.
Grüße,
Sven.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-bacula-devel/attachments/20160718/6d8c2778/attachment.sig>
More information about the pkg-bacula-devel
mailing list