Bug 26412 - ucr set locale="...." generiert neue locales nicht neu
ucr set locale="...." generiert neue locales nicht neu
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Lukas Walter
Jürgen Kahrs
: interim-2
: 26717 (view as bug list)
Depends on: 26840
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-08 18:42 CET by Sönke Schwardt-Krummrich
Modified: 2012-07-20 15:24 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2012-03-08 18:42:35 CET
UCS 3.0-0 Master:

Die neue Locale wird nicht generiert, weil /etc/locale.gen erst nach der Abarbeitung vom Modul set_locale neu generiert wird.

root@mas33:~# ucr set locale="$(ucr get locale) fr_FR.UTF-8:UTF-8"
Setting locale
Module: set_locale
Generating locales (this might take a while)...
  de_DE.UTF-8... done
  en_US.UTF-8... done
Generation complete.
File: /etc/locale.gen
root@mas33:~#
Comment 1 Janis Meybohm univentionstaff 2012-03-27 09:24:52 CEST
(In reply to comment #0)
Workaround:
Nach dem ergänzen der Locale die UCR-Variable noch einmal setzen:

ucr set locale="$(ucr get locale)"
Comment 2 Lukas Walter univentionstaff 2012-04-18 17:32:10 CEST
Das Modul set_locale wurde entfernt.

Stattdessen gibt es nun einen link "locale.gen" -> /usr/sbin/locale-gen unter /etc/univention/templates/scripts/etc/, sodass /usr/sbin/locale-gen automatisch ausgeführt wird nachdem das template locale.gen geparst wurde.
Comment 3 Lukas Walter univentionstaff 2012-04-19 13:40:45 CEST
*** Bug 26717 has been marked as a duplicate of this bug. ***
Comment 4 Jürgen Kahrs univentionstaff 2012-07-02 08:09:29 CEST
Ich hab die Kommandos auf einem UCS 3.0-1 errata 91 wiederholt und das Problem tritt nicht mehr auf.

  ucr get locale
  de_DE.UTF-8:UTF-8

  ucr set locale="$(ucr get locale) fr_FR.UTF-8:UTF-8"
  Setting locale
  File: /usr/share/univention-management-console-frontend/languages.json
  File: /etc/locale.gen
  Generating locales (this might take a while)...
    de_DE.UTF-8... done
    fr_FR.UTF-8... done
  Generation complete.

  tail -3 /etc/locale.gen
  de_DE.UTF-8 UTF-8
  fr_FR.UTF-8 UTF-8


Die neu gesetzte locale fr_FR.UTF-8:UTF-8 wurde nun also korrekt übernommen.
Comment 5 Stefan Gohmann univentionstaff 2012-07-20 15:24:13 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".