Refactor: add hook for configuration dispatch
All checks were successful
Build package / build-package (push) Successful in 10s

This commit is contained in:
2025-07-28 10:19:48 +08:00
parent ead9846716
commit 61774edc02
3 changed files with 55 additions and 10 deletions

14
61-hl-ldap-env.hook Normal file
View File

@@ -0,0 +1,14 @@
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Target = etc/openldap/ldap.conf
Target = etc/pam.d/su
Target = etc/pam.d/su-l
Target = etc/pam.d/sudo
Target = etc/pam.d/system-auth
[Action]
Description = Override configuration files...
When = PostTransaction
Exec = /usr/lib/hl-ldap-env/install.sh