From e6db5a353b349a203a5b61e3a6caa38ed6d39d13 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 11 Mar 2023 12:47:11 -0500 Subject: [PATCH] Update postgresql-v5-install.sh ensure that the PostgreSQL database server uses UTF-8 encoding and collation --- install/postgresql-v5-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/postgresql-v5-install.sh b/install/postgresql-v5-install.sh index 6c589a4f..7a003eb5 100644 --- a/install/postgresql-v5-install.sh +++ b/install/postgresql-v5-install.sh @@ -47,6 +47,9 @@ function msg_error() { msg_info "Setting up Container OS " sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen locale-gen >/dev/null +LANG=$(grep -v '^#' /etc/locale.gen | grep -o '^[^ ]*') +update-locale LANG=$LANG +echo "export LANG=$LANG" >> ~/.bashrc echo $tz > /etc/timezone ln -sf /usr/share/zoneinfo/$tz /etc/localtime for ((i=RETRY_NUM; i>0; i--)); do