Bug 58778 - Add hook points in univention-backup2master for optional custom scripts
Summary: Add hook points in univention-backup2master for optional custom scripts
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: LDAP
Version: UCS 5.2
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 5.2-3-errata
Assignee: Christian Castens
QA Contact: Iván.Delgado
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-04 12:25 CET by Christian Castens
Modified: 2025-11-12 12:59 CET (History)
0 users

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):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Castens univentionstaff 2025-11-04 12:25:30 CET
The Provisioning Service app and possibly other components in the future need special handling during a "Backup to Primary" scenario.

The idea is to introduce “pre” and “post” hook points in `univention-backup2master` to allow execution of optional custom scripts before and after the main workflow.

For that, `univention-backup2master` will run executable scripts located in `/usr/lib/univention-backup2master/pre/` and `/usr/lib/univention-backup2master/post/`
Comment 1 Christian Castens univentionstaff 2025-11-07 10:23:02 CET
ucs 5.2-3

univention-ldap.yaml
ce86c0fca6aa | chore(univention-ldap): add advisory

univention-ldap (18.3.1)
58390f308d88 | feat(univention-ldap): Add hook points in univention-backup2master

NONE
19a924582827 | docs(manual): update german translation
ce6c15c8e4df | docs(manual): add pre and post directories to univention-backup2master

univention-backup2master now provides two hook points that allow custom
scripts to be executed before and after the conversion from a Backup
Directory Node to a Primary Directory Node.
Comment 2 Iván.Delgado univentionstaff 2025-11-11 11:03:11 CET
QA:
  Code review: OK
  yaml: OK
  test works: OK
  backup2master works: OK