From 2069ed848301d96f4fb5a4034ef3e8deb0ccfa6e Mon Sep 17 00:00:00 2001 From: packetcat Date: Thu, 5 Dec 2024 10:03:57 -0500 Subject: [PATCH] wildcard the pgsql stops. --- pgsql_maint202412.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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