[pkg-bacula-devel] 01/02: Remove leftover /etc/tmpfiles.d/bacula.conf if identical to new
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
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the pkg-bacula-devel