mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Updated PostgreSQL
Updated Setup lines for PostgreSQL to match the ones from tandoor directly => https://docs.tandoor.dev/install/manual/#setup-postgresql. Without UTF8 you run into issues later if you setup an IDP like authentik and want to connect your user accounts to the IDP User. That leads to Server Error 500! https://github.com/goauthentik/authentik/pull/6609#discussion_r1580054688
This commit is contained in:
parent
8f243c444e
commit
d54b56de5c
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ $STD apt-get update
|
||||||
$STD apt-get install -y postgresql-16
|
$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 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 "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 "" >>~/tandoor.creds
|
||||||
echo -e "Tandoor Database Name: \e[32m$DB_NAME\e[0m" >>~/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
|
echo -e "Tandoor Database User: \e[32m$DB_USER\e[0m" >>~/tandoor.creds
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue