Yedidyah Bar David has uploaded a new change for review. Change subject: packaging: engine-backup: Require lc_messages = en_US.UTF-8 ......................................................................
packaging: engine-backup: Require lc_messages = en_US.UTF-8 Verify on restore that lc_messages is set to en_US.UTF-8, or we will not be able to correctly filter error messages. Change-Id: Ica0c8e4b3bc7fd6b06f762fa0bbe00058f16943d Bug-Url: https://bugzilla.redhat.com/1176457 Signed-off-by: Yedidyah Bar David <[email protected]> (cherry picked from commit 7a2526baa77db462e36141a9d1ebc22770894614) --- M packaging/bin/engine-backup.sh 1 file changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/12/37812/1 diff --git a/packaging/bin/engine-backup.sh b/packaging/bin/engine-backup.sh index ef0345c..ef801cf 100755 --- a/packaging/bin/engine-backup.sh +++ b/packaging/bin/engine-backup.sh @@ -634,6 +634,18 @@ >> "${LOG}" 2>&1 \ || logdie "Can't connect to database '${database}'. Please see '${0} --help'." + PGPASSFILE="${MYPGPASS}" psql \ + -w \ + -t \ + -U "${user}" \ + -h "${host}" \ + -p "${port}" \ + -d "${database}" \ + -c "show lc_messages" \ + 2> /dev/null \ + | grep -q '^ *en_US.UTF-8$' \ + || logdie "lc_messages is set to an unsupported value in postgresql.conf. Please set it to en_US.UTF-8 and restart postgresql." + local IGNORED_PATTERN=$(cat << __EOF | tr '\012' '|' | sed 's/|$//' ^create extension ^create procedural language -- To view, visit http://gerrit.ovirt.org/37812 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ica0c8e4b3bc7fd6b06f762fa0bbe00058f16943d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.5 Gerrit-Owner: Yedidyah Bar David <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
