X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fdebian%2Fwebcit.init;h=e237ac867bd3097569637405443b50800686751f;hb=1cb8a277add83b4e21bd4c2fbe65c2649b4b7089;hp=123d096c025dcb2950e0da4edd4ef9d2ec419625;hpb=b1f791fd375faf4665cae73acba7a9246d053035;p=citadel.git diff --git a/webcit/debian/webcit.init b/webcit/debian/webcit.init index 123d096c0..e237ac867 100644 --- a/webcit/debian/webcit.init +++ b/webcit/debian/webcit.init @@ -24,10 +24,6 @@ DEFAULT=/etc/default/webcit LOGDIR=/var/log/webcit/ -unset LANG -unset LANGUAGE -unset LC_ALL -unset LOCALE # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 @@ -53,6 +49,14 @@ if test -f $DEFAULT; then . $DEFAULT fi +unset LANG +unset LANGUAGE +unset LC_ALL +unset LOCALE +if test -n "$WEBCIT_LANG" -a "$WEBCIT_LANG" != "UNLIMITED"; then + export LANG=$WEBCIT_LANG +fi + if test -z "$TZ"; then if test -e /etc/timezone; then TZ=`cat /etc/timezone`