Skip to content

Commit bb4b114

Browse files
author
Kevin Reeuwijk
authored
Ensure locales are set to en_US.UTF-8 for install
This prevent the following installation error when the source Bolt host runs a non-US locale: `failed to call refresh: invalid byte sequence in US-ASCII`
1 parent 3c6ada2 commit bb4b114

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tasks/pe_install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ pedir=$(tar -tf "$PT_tarball" | head -n 1 | xargs dirname)
2020

2121
tar -C "$tgzdir" -xzf "$PT_tarball"
2222

23+
export LANG=en_US.UTF-8
24+
export LANGUAGE=en_US.UTF-8
25+
export LC_ALL=en_US.UTF-8
26+
2327
if [ ! -z "$PT_peconf" ]; then
2428
/bin/bash "${tgzdir}/${pedir}/puppet-enterprise-installer" -y -c "$PT_peconf"
2529
else

0 commit comments

Comments
 (0)