wildcard the pgsql stops.

This commit is contained in:
packetcat 2024-12-05 10:03:57 -05:00
parent 906cb61a84
commit 2069ed8483

View File

@ -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