wildcard the pgsql stops.
This commit is contained in:
parent
906cb61a84
commit
2069ed8483
@ -9,14 +9,14 @@
|
|||||||
# - Start postgresql
|
# - Start postgresql
|
||||||
|
|
||||||
# Stop relevant services
|
# Stop relevant services
|
||||||
systemctl stop mastodon-* && systemctl stop postgresql
|
systemctl stop mastodon-* && systemctl stop postgresql*
|
||||||
|
|
||||||
# Delete deprecated AWS repository from pgbackrest stanza
|
# Delete deprecated AWS repository from pgbackrest stanza
|
||||||
sudo -u postgres pgbackrest --stanza=main --log-level-console=info stop && \
|
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
|
sudo -u postgres pgbackrest --stanza=main --repo=1 --log-level-console=info stanza-delete
|
||||||
|
|
||||||
# Install Postgres 16 and make sure postgresql is stopped again
|
# 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
|
# Upgrade pgsql14 cluster to 16
|
||||||
pg_renamecluster 16 main main_pristine && pg_upgradecluster --method=link 14 main
|
pg_renamecluster 16 main main_pristine && pg_upgradecluster --method=link 14 main
|
||||||
|
Loading…
Reference in New Issue
Block a user