From 9f5f0b3cf483bf1fc527ff4e37c343459396a9c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 6 Aug 2024 15:40:51 +0200 Subject: [PATCH] Remove UTF-8 PostgreSQL configuration instructions Modern systems already use UTF-8 and so these instructions aren't necessary. --- docs/en/installation/ubuntu.md | 32 -------------------------------- docs/es/installation/ubuntu.md | 32 -------------------------------- 2 files changed, 64 deletions(-) diff --git a/docs/en/installation/ubuntu.md b/docs/en/installation/ubuntu.md index 31fd67366..7babd9a87 100644 --- a/docs/en/installation/ubuntu.md +++ b/docs/en/installation/ubuntu.md @@ -57,38 +57,6 @@ You also need to configure a user for your database. As an example, we'll choose sudo -u postgres createuser consul --createdb --superuser --pwprompt ``` -To make sure the UTF-8 enconding is used, create a file: - -```bash -sudo nano /etc/profile.d/lang.sh -``` - -Add the following: - -```bash -export LANGUAGE="en_US.UTF-8" -export LANG="en_US.UTF-8" -export LC_ALL="en_US.UTF-8" -``` - -Reconfigure Postgres to use the UTF-8 encoding: - -```bash -sudo su - postgres -psql -``` - -```sql -update pg_database set datistemplate=false where datname='template1'; -drop database Template1; -create database template1 with owner=postgres encoding='UTF-8' -lc_collate='en_US.utf8' lc_ctype='en_US.utf8' template template0; -update pg_database set datistemplate=true where datname='template1'; - -\q -exit -``` - ## Imagemagick Install Imagemagick: diff --git a/docs/es/installation/ubuntu.md b/docs/es/installation/ubuntu.md index c4a986671..34d2480db 100644 --- a/docs/es/installation/ubuntu.md +++ b/docs/es/installation/ubuntu.md @@ -57,38 +57,6 @@ Para el correcto funcionamiento de Consul Democracy, necesitas confgurar un usua sudo -u postgres createuser consul --createdb --superuser --pwprompt ``` -Para asegurarse que se utiliza la codificación con UTF-8, crea un archivo: - -```bash -sudo nano /etc/profile.d/lang.sh -``` - -Añade las siguientes líneas: - -```bash -export LANGUAGE="en_US.UTF-8" -export LANG="en_US.UTF-8" -export LC_ALL="en_US.UTF-8" -``` - -Reconfigura Postgres para utilizar la codificación UTF-8: - -```bash -sudo su - postgres -psql -``` - -```sql -update pg_database set datistemplate=false where datname='template1'; -drop database Template1; -create database template1 with owner=postgres encoding='UTF-8' -lc_collate='en_US.utf8' lc_ctype='en_US.utf8' template template0; -update pg_database set datistemplate=true where datname='template1'; - -\q -exit -``` - ## Imagemagick Instala Imagemagick: