postgreql 13

This commit is contained in:
Olivier DEBAUCHE 2021-06-08 14:23:05 +02:00 committed by GitHub
parent eb68e8b389
commit df5a84b6db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
run.sh
View File

@ -27,7 +27,7 @@ if [ "$1" = "import" ]; then
# Ensure that database directory is in right state
chown postgres:postgres -R /var/lib/postgresql
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"
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