We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4327871 commit b82369cCopy full SHA for b82369c
tools/appliance/systemvmtemplate/scripts/configure_locale.sh
@@ -22,13 +22,15 @@ set -x
22
function configure_locale() {
23
grep LANG=en_US.UTF-8 /etc/default/locale && \
24
grep LC_ALL=en_US.UTF-8 /etc/default/locale && \
25
- grep "en_US.UTF-8 UTF-8" /etc/locale.gen &&
+ grep "^en_US.UTF-8 UTF-8" /etc/locale.gen &&
26
return
27
28
cat >> /etc/default/locale << EOF
29
LANG=en_US.UTF-8
30
LC_ALL=en_US.UTF-8
31
EOF
32
+
33
+ grep "^en_US.UTF-8 UTF-8" /etc/locale.gen || \
34
cat >> /etc/locale.gen << EOF
35
en_US.UTF-8 UTF-8
36
0 commit comments