aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron-sh')
-rw-r--r--cron-sh/functions.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/cron-sh/functions.sh b/cron-sh/functions.sh
index 123ae11..a7fe6cf 100644
--- a/cron-sh/functions.sh
+++ b/cron-sh/functions.sh
@@ -1,12 +1,11 @@
#!/bin/bash
# msec: shared function
-if [[ -f /etc/sysconfig/i18n ]]; then
- . /etc/sysconfig/i18n
-fi
-
if [[ -f /etc/profile.d/10lang.sh ]]; then
. /etc/profile.d/10lang.sh
+elif [[ -f /etc/sysconfig/i18n ]]; then
+ # for older distros without 10lang.sh
+ . /etc/sysconfig/i18n
fi
if [[ -f /etc/security/msec/security.conf ]]; then