forked from ungleich-public/cdist
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:
commit
6f021889ee
1 changed files with 2 additions and 16 deletions
|
@ -40,27 +40,13 @@ os=$(cat "$__global/explorer/os")
|
|||
case $os
|
||||
in
|
||||
debian)
|
||||
os_version=$(cat "${__global}/explorer/os_version")
|
||||
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)
|
||||
locale_conf="/etc/default/locale"
|
||||
;;
|
||||
ubuntu)
|
||||
os_version=$(cat "${__global}/explorer/os_version")
|
||||
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)
|
||||
locale_conf="/etc/locale.conf"
|
||||
|
|
Loading…
Reference in a new issue