From 9040d261cbb0d8fdcdda8dbe3b6e55f075e07b6e Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Mon, 27 Dec 2021 11:22:29 +0100 Subject: [PATCH] Update run.sh --- run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/run.sh b/run.sh index 454239d..c59ac72 100755 --- a/run.sh +++ b/run.sh @@ -3,9 +3,9 @@ set -euo pipefail function createPostgresConfig() { - cp /etc/postgresql/12/main/postgresql.custom.conf.tmpl /etc/postgresql/12/main/conf.d/postgresql.custom.conf - sudo -u postgres echo "autovacuum = $AUTOVACUUM" >> /etc/postgresql/12/main/conf.d/postgresql.custom.conf - cat /etc/postgresql/12/main/conf.d/postgresql.custom.conf + cp /etc/postgresql/13/main/postgresql.custom.conf.tmpl /etc/postgresql/13/main/conf.d/postgresql.custom.conf + sudo -u postgres echo "autovacuum = $AUTOVACUUM" >> /etc/postgresql/13/main/conf.d/postgresql.custom.conf + cat /etc/postgresql/13/main/conf.d/postgresql.custom.conf } function setPostgresPassword() { @@ -28,8 +28,8 @@ set -x if [ "$1" = "import" ]; then # Ensure that database directory is in right state chown postgres:postgres -R /var/lib/postgresql - if [ ! -f /var/lib/postgresql/12/main/PG_VERSION ]; then - sudo -u postgres /usr/lib/postgresql/12/bin/pg_ctl -D /var/lib/postgresql/12/main/ initdb -o "--locale C.UTF-8" + if [ ! -f /var/lib/postgresql/13/main/PG_VERSION ]; then + sudo -u postgres /usr/lib/postgresql/13/bin/pg_ctl -D /var/lib/postgresql/13/main/ initdb -o "--locale C.UTF-8" fi # Initialize PostgreSQL