Univention Bugzilla – Bug 48079
Copy a portal
Last modified: 2023-01-26 14:51:38 CET
It should be possible to copy a portal object (similar to copying a user object). Especially in UCS@school scenarios we might want to deploy one portal per school. Those portals all share the same base, but have minor differences. It's cumbersome to start from scratch for every single portal. Therefore being able to copy a portal and tweak it from there would be great.
I tried to use UDM for this: > udm settings/portal create --position "cn=portal,cn=univention,dc=schule,dc=example,dc=org" \ > --set displayName='"en_US" "school startsite for {hostname}"' \ > --append displayName='"de_DE" "Schulportalseite von {hostname}"' \ > --set fontColor="black" \ > --set name="testportal" \ > --set portalComputers="cn=test01,cn=dc,cn=server,cn=computers,ou=mz,dc=schule,dc=example,dc=org" \ > --set portalEntriesOrder="cn=teacherconsole,cn=portal,cn=univention,dc=schule,dc=example,dc=org" \ > --append portalEntriesOrder="cn=something,cn=portal,cn=univention,dc=schule,dc=example,dc=org" \ > --append portalEntriesOrder="cn=self-service-portal,cn=portal,cn=univention,dc=schule,dc=example,dc=org" \ > --append portalEntriesOrder="cn=root-cert,cn=portal,cn=univention,dc=schule,dc=example,dc=org" \ > --append portalEntriesOrder="cn=another-entry,cn=portal,cn=univention,dc=schule,dc=example,dc=org" \ > --set showApps="TRUE" \ > --set showLogin="TRUE" \ > --set showMenu="TRUE" \ > --set showSearch="TRUE" \ > --set showServers="TRUE" \ > --set content="$(< univention-tam/portal_content.json)" \ > --set background="$(< univention-tam/portal_base64-encoded-image)" But: -bash: /usr/sbin/udm: Argument list too long Is it not possible to create a portal with a background image via UDM CLI?
It's a bash error message, use xargs maybe?
Adding another U@S customer that is asking for copying portal entries