Univention Bugzilla – Bug 36316
Adjust UCR variables for UCS startsite entries
Last modified: 2014-11-26 06:53:47 CET
With UCS 4.0, only entries for UMC and installed apps will have their own icon on the UCS startsite. Other entries will no longer show an icon image. The corresponding .postinst scripts need therefore to adjust for the case of a package installation as well as for the update case (i.e., remove existing UCR variables ucs/web/overview/entries/.*/icon).
ucr variables have been removed from affected packages also an ucr uset command has been added in case of an update
Some still exist: > management/univention-management-console/debian/univention-management-console-doc.postinst > ./management/univention-management-console-frontend/34univention-management-console-web-server.inst
(In reply to Alexander Kläser from comment #2) > Some still exist: > > management/univention-management-console/debian/univention-management-console-doc.postinst > > ./management/univention-management-console-frontend/34univention-management-console-web-server.inst The last one is fine, the path just needs to be adjusted as the .png file is obsolete (use */scalable/*.svg instead).
both have been adapted accordingly
I could still find some: > root@master5:~/build/management/univention-management-console-frontend# ucr search ucs/web.*icon > ucs/web/overview/entries/.*/icon: <empty> > ucs/web/overview/entries/admin/invalid-certificate-list/icon: /icon/50x50/invalid-certificate-list.png > ucs/web/overview/entries/admin/root-certificate/icon: /icon/50x50/root-certificate.png > ucs/web/overview/entries/admin/umc-doc/icon: /icon/50x50/univention_dev_logo.png > ucs/web/overview/entries/admin/umc/icon: /univention-management-console/js/dijit/themes/umc/icons/scalable/univention-management-console.svg BTW, for variables that are set in join scripts, I would suggest to remove the variables in the package's postinst script (instead of in the join script itself).
ucr varibales are now removed through postinstall scrip added missing entries
The following check does not look right to me, DC backups also have a link entry to the master system: > if [ "$server_role" = "domaincontroller_master" ] || [ "$server_role" = "domaincontroller_backup" ]; then > /usr/lib/univention-install/08univention-apache.inst || true > ucr unset \ > ucs/web/overview/entries/admin/root-certificate/icon \ > ucs/web/overview/entries/admin/invalid-certificate-list/icon > else > ucr unset \ > ucs/web/overview/entries/admin/ldap-master/icon > fi Much simpler would be without the if conditions: > ucr unset \ > ucs/web/overview/entries/admin/root-certificate/icon \ > ucs/web/overview/entries/admin/invalid-certificate-list/icon \ > ucs/web/overview/entries/admin/ldap-master/icon Otherwise this looks good.
adapted postinst to make the removal of icon related ucr entries role unspecific (r55390)
Looks good now. Changelog not necessary. VERIFIED
UCS 4.0-0 has been released: http://docs.univention.de/release-notes-4.0-0-en.html http://docs.univention.de/release-notes-4.0-0-de.html If this error occurs again, please use "Clone This Bug".