From 9cbd0f30376787e49d3972fdbc0af6872467c1e6 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 16 Jul 2024 11:27:55 -0400 Subject: [PATCH] Update install.func fixes https://github.com/tteck/Proxmox/issues/3386 --- misc/install.func | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/install.func b/misc/install.func index c698e258..660ea2c4 100644 --- a/misc/install.func +++ b/misc/install.func @@ -87,7 +87,10 @@ msg_error() { setting_up_container() { msg_info "Setting up Container OS" sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen + locale_line=$(grep -v '^#' /etc/locale.gen | grep -E '^[a-zA-Z]' | awk '{print $1}' | head -n 1) + echo "LANG=${locale_line}" >/etc/default/locale locale-gen >/dev/null + export LANG=${locale_line} echo $tz >/etc/timezone ln -sf /usr/share/zoneinfo/$tz /etc/localtime for ((i = RETRY_NUM; i > 0; i--)); do