Univention Bugzilla – Bug 50359
Appliances don't have customized Portals
Last modified: 2019-10-17 18:43:33 CEST
When configured in the provider portal, app appliances should have a portal with custom title, logo, background, and text color (app ini values: AppliancePortalLogo, AppliancePortalCssBackground, AppliancePortalTitle, AppliancePortalFontColor). This is not working for the currently released appliances and for appliances that are being built right now. Maybe this has something to do with it: utils/base_appliance.sh: /usr/sbin/univention-app-appliance --not-configure-portal $main_app
The package univention-app-appliance provides a script to configure the portal: usr/lib/univention-system-setup/appliance-hooks.d/30_adjust_portal:/usr/sbin/univention-app-appliance --only-configure-portal $(ucr get umc/web/appliance/id) Output from that script should be available in /var/log/univention/setup.log
Created attachment 10204 [details] patch /usr/sbin/univention-app-appliance --only-configure-portal $(ucr get umc/web/appliance/id) fails with: Traceback (most recent call last): File "/usr/sbin/univention-app-appliance", line 309, in <module> configure_portal(app) File "/usr/sbin/univention-app-appliance", line 88, in configure_portal result = module.lookup(None, lo, 'cn=domain', base=UCR['ldap/base'], scope='sub') AttributeError: 'NoneType' object has no attribute 'lookup' The reason for this is that the udm modules aren't loaded.
I applied the patch. f049f5b3db Bug #50359: yaml 735fb1d419 Bug #50359: fix appliance portal branding 2a7918b526 Bug #50359: code cleanup Successful build Package: univention-app-appliance Version: 3.0.1-2A~4.4.0.201910171109 Branch: ucs_4.4-0 Scope: errata4.4-2
Portal: OK Code: OK YAML: OK
Released as unmaintained errata for 4.4-2. I removed the yaml file from staging.