Skip to content

Commit

Permalink
chore: retry stopping PG if it initially fails (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcnc authored Nov 13, 2023
1 parent cce9046 commit 4f42b9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ EOF
UPGRADE_COMMAND="$UPGRADE_COMMAND --check"
else
echo "9. Stopping postgres; running pg_upgrade"
systemctl stop postgresql
retry 5 systemctl stop postgresql
fi

su -c "$UPGRADE_COMMAND" -s "$SHELL" postgres
Expand Down

0 comments on commit 4f42b9f

Please sign in to comment.