mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
upgrade-postgresql: Force a known locale.
Some terminals (e.g. ssh from OS X) set an invalid locale, which causes the `pg_upgradecluster` call late in the upgrade to fail. Force a known locale, for consistency. This mirrors the settings in upgrade-zulip-stage-2, set in11ab545f3b, and its subsequent cleanups in64c608a51a,ee0f4ca330, andeda9ce2364.
This commit is contained in:
committed by
Tim Abbott
parent
3a0620a40c
commit
2bbeef301a
@@ -6,6 +6,12 @@ if [ "$EUID" -ne 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Force a known locale; some OS X terminals set an invalid LC_CTYPE
|
||||||
|
# which crashes pg_upgradecluster
|
||||||
|
export LC_ALL=C.UTF-8
|
||||||
|
export LANG=C.UTF-8
|
||||||
|
export LANGUAGE=C.UTF-8
|
||||||
|
|
||||||
UPGRADE_TO=${1:-14}
|
UPGRADE_TO=${1:-14}
|
||||||
UPGRADE_FROM=$(crudini --get /etc/zulip/zulip.conf postgresql version)
|
UPGRADE_FROM=$(crudini --get /etc/zulip/zulip.conf postgresql version)
|
||||||
ZULIP_PATH="$(dirname "$0")/../.."
|
ZULIP_PATH="$(dirname "$0")/../.."
|
||||||
|
|||||||
Reference in New Issue
Block a user