summaryrefslogtreecommitdiff
path: root/docker/base/httpd_setup.sh
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-21 15:14:02 +0000
commitea0bfb6bc78caff014426aa690422ffea5f0dad4 (patch)
treecd141290987f82f68af34ae1ea775e30b30b6285 /docker/base/httpd_setup.sh
parent8e05ae685b5c5b3e5950fede5116cc2f46e85616 (diff)
downloadkolla-zed-eol.tar.gz
kolla-zed-eol.zip
Configure Apache services to use correct localezed-eol
Closes-Bug: #2076453 Change-Id: I6af9baf09a19a7dbcaf98585870aa44ff79398d3 Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com> (cherry picked from commit 2caa64df67349b365b5ce94a0e9625d0b6ff87d1)
Diffstat (limited to 'docker/base/httpd_setup.sh')
-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