aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2024-08-21 15:10:03 +0000
committerGerrit Code Review <review@openstack.org>2024-08-21 15:10:03 +0000
commitfe1aefd67fb554de81a1ba2d66c33645483fcf79 (patch)
tree304e2a9db146c5fe374da0ced9eea1b84fe0b2ed /docker
parent44acae38943185a6bcc6abfad24ba87839fce28a (diff)
parent2caa64df67349b365b5ce94a0e9625d0b6ff87d1 (diff)
downloadkolla-fe1aefd67fb554de81a1ba2d66c33645483fcf79.tar.gz
kolla-fe1aefd67fb554de81a1ba2d66c33645483fcf79.zip
Merge "Configure Apache services to use correct locale"
Diffstat (limited to 'docker')
-rw-r--r--docker/base/httpd_setup.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/docker/base/httpd_setup.sh b/docker/base/httpd_setup.sh
index eb3d6794e..35f7b5b1e 100644
--- a/docker/base/httpd_setup.sh
+++ b/docker/base/httpd_setup.sh
@@ -39,3 +39,13 @@ EOF
/usr/libexec/httpd-ssl-gencerts
fi
fi
+
+# The default system locale with unicode support
+LANG=C.UTF-8
+
+# Override the default locale if configured
+if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
+ [ -f /etc/default/locale ] && . /etc/default/locale
+else
+ [ -f /etc/locale.conf ] && . /etc/locale.conf
+fi