Bug 48867

Summary: portal custom.css is overwritten if join script is (re-)executed
Product: UCS Reporter: Stefan Gohmann <gohmann>
Component: PortalAssignee: UMC maintainers <umc-maintainers>
Status: NEW --- QA Contact: UMC maintainers <umc-maintainers>
Severity: normal    
Priority: P5 CC: michelsmidt, schwiegert, steuwer
Version: UCS 4.4   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
What kind of report is it?: Bug Report What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 1: Will affect a very few installed domains How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.114 Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on: 48506    
Bug Blocks:    

Description Stefan Gohmann univentionstaff 2019-03-05 18:32:40 CET
From the joinscript:

---------------------------------------------------------------------
# One time action: Copy example custom css file
if [ $JS_LAST_EXECUTED_VERSION -lt 6 ]; then
    cp /usr/share/univention-portal/custom.css.example /usr/share/univention-portal/custom.css
fi
---------------------------------------------------------------------

The problem is that the custom.css is overwritten on a rejoin. I think it would better to copy the file only if the target does not exist.



+++ This bug was initially created as a clone of Bug #48506 +++

Text from Trello card:

Momentan unterstützt das Portal exakt eine Eigenschaft im CSS anzupassen: „background“. Wir wollen es zukünftig unterstützen, eine komplette und frei definierbare CSS-Datei neben die Default-Datei zu legen.
Begründung: Diese eine Datei erlaubt es uns, in Projekten optisch tiefgreifende Änderungen vorzunehmen. Bei Präsentationen und später im Projekt ist so etwas wichtig. Das sollte Abstände usw. anpassbar machen. Aber auch beispielsweise den Hintergrund für den Titel des Portals ändern. Das war ein Wunsch und konnte bisher nur über unzureichend über ein angepasstes Hintergrundbild erreicht werden.

Die CSS-Datei könnte in einer Art Inline-Editing im Frontend des Portals selber angepasst werden. Im ersten Schritt wird das aber nicht versprochen. (Nur, dass wir es uns anschauen)
Wir / Partner / Admins können in der CSS-Datei mit „! important“ immer angeben, dass ihre Definition wichtiger ist als der Default.