Commit 036b5251 authored by Anton Midyukov's avatar Anton Midyukov

l10n: setup /etc/sysconfig/i18n and /etc/locale.conf, when it is needed only

parent 1144e614
...@@ -18,7 +18,8 @@ if [ -f "$langlist" ] && [ -n "$locales" ]; then ...@@ -18,7 +18,8 @@ if [ -f "$langlist" ] && [ -n "$locales" ]; then
fi fi
if [ -n "$locale" ]; then if [ -n "$locale" ]; then
echo LANG="$locale".UTF8 > "$systemd_locale" which localectl 2>&1 >/dev/null && echo LANG="$locale".UTF8 > "$systemd_locale"
echo LANG="$locale".UTF8 > "$sysv_locale" [ -f "$sysv_locale" ] && echo LANG="$locale".UTF8 > "$sysv_locale"
echo SUPPORTED="$locale".UTF8 >> "$sysv_locale" [ -f "$sysv_locale" ] && echo SUPPORTED="$locale".UTF8 >> "$sysv_locale"
fi fi
:
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