We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 136aefe commit 698099dCopy full SHA for 698099d
templates/postgres.template.yml
@@ -263,6 +263,9 @@ run:
263
su postgres -c 'psql $db_name -c "create extension if not exists vector;"'
264
su postgres -c 'psql $db_name -c "alter extension vector update;"' || true
265
sudo -u postgres psql $db_name <<< "update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = '$db_name' AND encoding = pg_char_to_encoding('SQL_ASCII');" || true
266
+ if [ ! -z "$DISCOURSE_DB_PASSWORD" ]; then
267
+ echo "alter user $db_user with password '$DISCOURSE_DB_PASSWORD';" | su - postgres -c 'psql $db_name'
268
+ fi
269
270
- file:
271
path: /var/lib/postgresql/take-database-backup
0 commit comments