From eb68e8b3895ca0c342ec931335e243436421e974 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Tue, 8 Jun 2021 14:22:18 +0200 Subject: [PATCH] postgresql 13 --- run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run.sh b/run.sh index 95e219e..2f79f89 100755 --- a/run.sh +++ b/run.sh @@ -3,9 +3,9 @@ set -x 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() { @@ -26,7 +26,7 @@ fi 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 + if [ ! -f /var/lib/postgresql/13/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" fi