Univention Bugzilla – Bug 27510
UCR sollte auch bei Multifiles etc/univention/templates/scripts/PATH_TO_FILE ausführen
Last modified: 2012-07-20 15:25:34 CEST
If a script /etc/univention/templates/scripts/$full_path_to_file exists, it will be called after the file has been created from the template. The script is called with the argument postinst and receives the list of changes as key@%@old_value@%@new_value on standard input. Das sollte auch für MultiFiles gelten.
in python/univention/config_registry.py angepasst.
Funktioniert: root@master:/etc/univention/templates/scripts# cat etc/ldap/slapd.conf #!/bin/bash echo "Hit me with $@" > /tmp/ucr-scripts.log echo "STDIN" >>/tmp/ucr-scripts.log while read line; do echo $line >>/tmp/ucr-scripts.log done root@master:/etc/univention/templates/scripts# ucr set ldap/sizelimit="400002" Setting ldap/sizelimit Multifile: /etc/ldap/slapd.conf root@master:/etc/univention/templates/scripts# cat /tmp/ucr-scripts.log Hit me with postinst STDIN ldap/sizelimit@%@400000@%@400002 ChangeLog-Eintrag existiert auch
UCS 3.0-2 has been released: http://forum.univention.de/viewtopic.php?f=54&t=1905 If this error occurs again, please use "Clone This Bug".