summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-25 16:28:21 -0700
committerTim Smith <tsmith@chef.io>2018-10-25 16:28:21 -0700
commit0911395c4ebdef7799545d986be3b045bad92935 (patch)
tree2cc6c5f680a0a907d55d6c3c0e2fff87158956d5
parentc3dc0297d2727e7b964086dbe79adb2f6beb5301 (diff)
downloadchef-0911395c4ebdef7799545d986be3b045bad92935.tar.gz
Fix locale on RHEL 6 / Amazon Linux
There was a double source in the command, which would fail. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/locale.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/locale.rb b/lib/chef/resource/locale.rb
index bde1ee704e..9c5e7d0eea 100644
--- a/lib/chef/resource/locale.rb
+++ b/lib/chef/resource/locale.rb
@@ -61,7 +61,7 @@ class Chef
end
execute "reload root's lang profile script" do
- command "source source /etc/sysconfig/i18n; source /etc/profile.d/lang.sh"
+ command "source /etc/sysconfig/i18n; source /etc/profile.d/lang.sh"
not_if { updated }
end
elsif ::File.exist?("/usr/sbin/update-locale")