several improvement and armonisation in filefct.sh, module auth and patch_snmp improved
This commit is contained in:
@@ -20,14 +20,14 @@
|
||||
# Character table (ISO or UTF)
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export VER_conf_locale="0.1.3"
|
||||
export VER_conf_locale="0.1.5"
|
||||
|
||||
conf_locale()
|
||||
{
|
||||
pkginst locales locales-all
|
||||
local gen_fname=/etc/locale.gen
|
||||
backupdist $gen_fname
|
||||
tagfile $gen_fname
|
||||
backup_dist $gen_fname
|
||||
tag_file $gen_fname
|
||||
|
||||
# Removing locales not in the list
|
||||
prnt I "Deactivating initial locales from installation..."
|
||||
@@ -49,16 +49,18 @@ conf_locale()
|
||||
prnt I "Regenerating locales cache..."
|
||||
locale-gen
|
||||
|
||||
prnt I "Definingdsystem language..."
|
||||
[[ ! $SYSLOCALE ]] &&
|
||||
prnt I "Defining system language..."
|
||||
[[ -z $SYSLOCALE ]] &&
|
||||
export SYSLOCALE=C
|
||||
|
||||
local sys_fname=/etc/default/locale
|
||||
backupdist $sys_fname
|
||||
tagfile $sys_fname
|
||||
backup_dist $sys_fname
|
||||
tag_file $sys_fname
|
||||
echo "LANG=$SYSLOCALE" >> $sys_fname
|
||||
|
||||
# We define all LC_* but LC_ALL as recommended by GNU
|
||||
for cfg in ADDRESS IDENTIFICATION MEASUREMENT MONETARY NAME NUMERIC PAPER \
|
||||
TELEPHONE TIME; do
|
||||
TELEPHONE TIME; do
|
||||
echo "LC_$cfg=$SYSLOCALE" >> $sys_fname
|
||||
done
|
||||
}
|
||||
@@ -72,7 +74,7 @@ precheck_conf_locale()
|
||||
fi
|
||||
|
||||
if [[ -z $SYSLOCALE ]]; then
|
||||
prnt W "No system locale defined, we'll use s."
|
||||
prnt W "No system locale defined, we will use C as default."
|
||||
export SYSLOCALE="C"
|
||||
fi
|
||||
prnt m "The default locale will be $SYSLOCALE"
|
||||
|
||||
Reference in New Issue
Block a user