Bug 28229 - UCR sollte auch bei Multifiles etc/univention/templates/modules/PATH_TO_MODULE unterstützen
UCR sollte auch bei Multifiles etc/univention/templates/modules/PATH_TO_MODUL...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCR
UCS 3.0
All Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Philipp Hahn
Stefan Gohmann
: interim-1
Depends on:
Blocks: 26058 32297
  Show dependency treegraph
 
Reported: 2012-08-15 17:02 CEST by Philipp Hahn
Modified: 2013-08-22 11:07 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Further conceptual development
Max CVSS v3 score:
hahn: Patch_Available+


Attachments
Module support for UCR multi files (6.21 KB, patch)
2012-08-15 17:02 CEST, Philipp Hahn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2012-08-15 17:02:37 CEST
Created attachment 4597 [details]
Module support for UCR multi files

+++ This bug was initially created as a clone of Bug #27510 +++

man univention-install-config-registry
> If Preinst und Postinst are used, the module must implement the following functions:...

Das sollte auch für MultiFiles gelten.
Comment 1 Philipp Hahn univentionstaff 2012-08-21 11:38:28 CEST
Multifile-Vorlagen unterstützen nun auch den Aufruf von Python-Modules vor und
nach Änderungen.
UCR selber, univention-install-config-registry und ucslint wurden entsprechend
angepasst.
Erster Nutzer ist /etc/network/interfaces.

svn34945, univention-config-registry_8.0.2-3.393.201208211135
svn34947, ucslint_3.0.4-1.52.201208211040

ChangeLog: svn14406
\item Multifile templates now also support calling Python modules before and
after changes (\ucsBug{28229}).
Comment 2 Stefan Gohmann univentionstaff 2012-09-17 10:56:14 CEST
Changelog: OK

Code: OK

Tests: Für interfaces funktioniert es, ebenso für einen manuellen Test:
root@backup132:/etc/univention/templates/modules# ucr commit /etc/samba/smb.conf 
Multifile: /etc/samba/smb.conf
Preinst of smb.conf
Postinst of smb.conf
Comment 3 Stefan Gohmann univentionstaff 2012-12-12 21:09:47 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".