aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorMaksim Malchuk <maksim.malchuk@gmail.com>2024-08-09 21:21:48 +0300
committerMaksim Malchuk <maksim.malchuk@gmail.com>2024-08-12 09:55:35 +0000
commit2caa64df67349b365b5ce94a0e9625d0b6ff87d1 (patch)
tree56b985f2e2a93b8685fb538c4e7e33505b8d5eb0 /docker
parent3c130f290ea5b1c5758803dc3c3cd303c41c8a82 (diff)
downloadkolla-2caa64df67349b365b5ce94a0e9625d0b6ff87d1.tar.gz
kolla-2caa64df67349b365b5ce94a0e9625d0b6ff87d1.zip
Configure Apache services to use correct locale
Closes-Bug: #2076453 Change-Id: I6af9baf09a19a7dbcaf98585870aa44ff79398d3 Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
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