Univention Bugzilla – Bug 45320
Create tool to show diffs for UCR-template-adjustments
Last modified: 2020-07-06 09:21:38 CEST
As customers edit UCR templates, it would be good to have a mechanism which allows to obtain a diff. For that purpose we would need to store a reference copy of each template file in some location like /etc/univention/templates.dist. That would allow customers and Support to check a diff of the resulting config files (post UCR commit). That would also lay a foundation for an automatized 3-way-merge for template adjustments (via some preup/postup code), but that's a different story and might not be a good (supportable) idea at all.
This proposal is focussed on template adjustments, rather than adjustments to committed configuration files.
(In reply to Arvid Requate from comment #0) > As customers edit UCR templates, it would be good to have a mechanism which > allows to obtain a diff. For that purpose we would need to store a reference > copy of each template file in some location like > /etc/univention/templates.dist NO, NEVER TEHRE! See Bug #28284 > That would also lay a foundation for an automatized 3-way-merge for template > adjustments (via some preup/postup code), but that's a different story and > might not be a good (supportable) idea at all. See <https://anonscm.debian.org/gitweb/?p=users/srivasta/debian/ucf.git> to do it right.
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
I get asked for such a tool regularly during Technical Trainings when talking about `univention-check-templates` and that there is no tool to revert changes. My work-around is dpkg -S /etc/univention/templates/files/… # → $pkg apt download $pkg dpkg -x $pkg ./orig diff {orig,}/etc/univention/templates/files/… TT 2020-06-25/26