From 105fa6e8c458f85f6a3e951db730615b0bbb1505 Mon Sep 17 00:00:00 2001 From: NiceDevil <17103076+nicedevil007@users.noreply.github.com> Date: Thu, 25 Apr 2024 22:25:27 +0200 Subject: [PATCH] Updated PostgreSQL (#2860) Updated Setup lines for PostgreSQL to match the ones from tandoor directly => https://docs.tandoor.dev/install/manual/#setup-postgresql. --- install/tandoor-install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/tandoor-install.sh b/install/tandoor-install.sh index fa0e0ac3..e317b9ab 100644 --- a/install/tandoor-install.sh +++ b/install/tandoor-install.sh @@ -81,6 +81,9 @@ $STD apt-get update $STD apt-get install -y postgresql-16 $STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';" $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMPLATE template0;" +$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';" +$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';" +$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC'" echo "" >>~/tandoor.creds echo -e "Tandoor Database Name: \e[32m$DB_NAME\e[0m" >>~/tandoor.creds echo -e "Tandoor Database User: \e[32m$DB_USER\e[0m" >>~/tandoor.creds