Skip to content

Commit a7cddc2

Browse files
committed
fix(infra): locales error
1 parent c819011 commit a7cddc2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

infra/aggregation_mode/terraform/cloudinit/postgres-monitor-cloud-init.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,22 @@ packages:
3333
- htop
3434
- rsync
3535
- pkg-config
36+
- locales
37+
38+
write_files:
39+
- path: /etc/environment
40+
content: |
41+
LANG=en_US.UTF-8
42+
LC_ALL=C
43+
LANGUAGE=en_US.UTF-8
44+
LC_TYPE=en_US.UTF-8
45+
LC_CTYPE=en_US.UTF-8
3646
3747
runcmd:
3848
- loginctl enable-linger app
3949
# Tailscale installation https://tailscale.com/kb/1293/cloud-init
4050
- curl -fsSL https://tailscale.com/install.sh | sh
4151
- tailscale up --ssh --advertise-tags=tag:server --auth-key=${tailscale_auth_key}
4252
- tailscale set --auto-update
53+
- sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
54+
- locale-gen

0 commit comments

Comments
 (0)