Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

upgrade-postgres: Catch failed pg_upgradecluster exit code.

Alex Vandiver1fa4ef02710b
diff --git a/scripts/setup/upgrade-postgres b/scripts/setup/upgrade-postgres
index 9eedb5c00db..c1925895ce9 100755
--- a/scripts/setup/upgrade-postgres
+++ b/scripts/setup/upgrade-postgres
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-set -e
+set -eo pipefail
if [ "$EUID" -ne 0 ]; then
echo "Error: This script must be run as root" >&2