Univention Bugzilla – Bug 50713
Multiple ad-connector prepare-new-instance script no longer working
Last modified: 2020-01-29 14:07:05 CET
Hello, With a previous UCS update, it seem that the script prepare-new-instance no longer working. the main.py in /usr/share/pyshared/univention/connector/ does not exist ! I fixed this with this code but i'don't know if it's the good way : <CODE> echo "-- copy startup script" cp /usr/sbin/univention-ad-connector /usr/sbin/univention-ad-"$CONFIGBASENAME" sed -i "s|/usr/share/pyshared/univention/connector/ad/main.py.*|/usr/share/pyshared/univention/connector/ad/main.py --configbase \"$CONFIGBASENAME\"|" /usr/sbin/univention-ad-"$CONFIGBASENAME" sed -i "s|/etc/univention/connector/ad/mapping|/etc/univention/$CONFIGBASENAME/ad/mapping|g" /usr/sbin/univention-ad-"$CONFIGBASENAME" </CODE> Replace with : <CODE> echo "-- copy startup script" cp /usr/sbin/univention-ad-connector /usr/sbin/univention-ad-"$CONFIGBASENAME" sed -i "s|/usr/bin/python2.7 -W ignore -m univention.connector.ad.main \"$@\"|/usr/bin/python2.7 -W ignore -m univention.connector.ad.main \"$@\" --configbase \"$CONFIGBASENAME\"|" /usr/sbin/univention-ad-"$CONFIGBASENAME" sed -i "s|/etc/univention/connector/ad/mapping|/etc/univention/$CONFIGBASENAME/ad/mapping|g" /usr/sbin/univention-ad-"$CONFIGBASENAME" </CODE>
Thank you for the bug report, it seems this is a regression which was introduced during the dh_python migration (Bug 49168).
[4.4-3 1cf59612e4] Bug #50674: fix ad-connector prepare-new-instance Package: univention-ad-connector Version: 13.0.0-28A~4.4.0.202001281356 Branch: ucs_4.4-0 Scope: errata4.4-3 Sorry I got the wrong bug number for the commit :(
[4.4-3 61b6984dca] Bug #50713: add "$@" to prepare-new-instance [4.4-3 a3b636c8c7] Bug #50713: yaml Package: univention-ad-connector Version: 13.0.0-29A~4.4.0.202001291041 Branch: ucs_4.4-0 Scope: errata4.4-3
OK: code replacement from /usr/sbin/univention-ad-connector OK: yaml -> verified
<http://errata.software-univention.de/ucs/4.4/429.html>