diff --git a/pgsql_maint202412.sh b/pgsql_maint202412.sh index 9f99197..0fb076b 100644 --- a/pgsql_maint202412.sh +++ b/pgsql_maint202412.sh @@ -9,14 +9,14 @@ # - Start postgresql # Stop relevant services -systemctl stop mastodon-* && systemctl stop postgresql +systemctl stop mastodon-* && systemctl stop postgresql* # Delete deprecated AWS repository from pgbackrest stanza sudo -u postgres pgbackrest --stanza=main --log-level-console=info stop && \ sudo -u postgres pgbackrest --stanza=main --repo=1 --log-level-console=info stanza-delete # Install Postgres 16 and make sure postgresql is stopped again -apt install -y postgresql-16 && systemctl stop postgresql +apt install -y postgresql-16 && systemctl stop postgresql* # Upgrade pgsql14 cluster to 16 pg_renamecluster 16 main main_pristine && pg_upgradecluster --method=link 14 main