From 7e8c03e3c02683bbb0c5232bba7a01b851b167ee Mon Sep 17 00:00:00 2001
From: jiangpch <jiangpch@gohighsec.com>
Date: Fri, 28 Oct 2016 10:41:52 -0400
Subject: [PATCH] remove override_install_langs option in /etc/yum.conf

Closes-Bug: #1637803
Change-Id: I5c22b76379b1dce1673124ac8b46b894449405a5
---
 docker/base/Dockerfile.j2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2
index ce2bbbd520..ebd0f8079a 100644
--- a/docker/base/Dockerfile.j2
+++ b/docker/base/Dockerfile.j2
@@ -29,7 +29,8 @@ ENV PS1="$(tput bold)($(printenv KOLLA_SERVICE_NAME))$(tput sgr0)[$(id -un)@$(ho
 RUN if [ $(awk '{match($0, /[0-9]+/,version)}END{print version[0]}' /etc/system-release) != "{{ supported_distro_release }}" ]; then \
         echo "Only supported {{ supported_distro_release }} release on {{ base_distro }}"; false; \
     fi \
-    && cat /tmp/kolla_bashrc >> /etc/bashrc
+    && cat /tmp/kolla_bashrc >> /etc/bashrc \
+    && sed -i 's|^\(override_install_langs=.*\)|# \1|' /etc/yum.conf
 
 #### BEGIN REPO ENABLEMENT
 # Turns on Elasticsearch repos