Merge branch '__locale_system_debian_fix' into 'master'

[__locale_system] fix for debian and ubuntu

See merge request ungleich-public/cdist!921
This commit is contained in:
poljakowski 2020-08-15 20:59:59 +02:00
commit 6f021889ee

View file

@ -40,27 +40,13 @@ os=$(cat "$__global/explorer/os")
case $os case $os
in in
debian) debian)
os_version=$(cat "${__global}/explorer/os_version") locale_conf="/etc/default/locale"
if expr "${os_version}" '>=' 4 >/dev/null
then
# Debian 4 (etch) and later
locale_conf="/etc/default/locale"
else
locale_conf="/etc/environment"
fi
;; ;;
devuan) devuan)
locale_conf="/etc/default/locale" locale_conf="/etc/default/locale"
;; ;;
ubuntu) ubuntu)
os_version=$(cat "${__global}/explorer/os_version") locale_conf="/etc/default/locale"
if expr "${os_version}" '>=' 6.10 >/dev/null
then
# Ubuntu 6.10 (edgy) and later
locale_conf="/etc/default/locale"
else
locale_conf="/etc/environment"
fi
;; ;;
archlinux) archlinux)
locale_conf="/etc/locale.conf" locale_conf="/etc/locale.conf"