Commit 659bee91 authored by Anton Midyukov's avatar Anton Midyukov

l10n: set LANG to /etc/sysconfig/i18n, /etc/locale.conf

parent 70284be0
......@@ -3,6 +3,9 @@
langlist="/etc/alterator/sysconfig/lang/langlist.all"
langlist_temp="$langlist".temp
locales="$GLOBAL_LOCALES"
locale="$GLOBAL_LOCALE"
systemd_locale=/etc/locale.conf
sysv_locale=/etc/sysconfig/i18n
[ -f "$langlist" ] || exit 0
[ -n "$locales" ] || exit 0
......@@ -14,3 +17,9 @@ for lang in $locales; do
done
mv "$langlist_temp" "$langlist"
[ -n "$locale" ] || exit 0
echo LANG="$locale".UTF8 > "$systemd_locale"
echo LANG="$locale".UTF8 > "$sysv_locale"
echo SUPPORTED="$locale".UTF8 >> "$sysv_locale"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment