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 <d...@redhat.com> --- M packaging/bin/engine-backup.sh 1 file changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/09/37809/1 diff --git a/packaging/bin/engine-backup.sh b/packaging/bin/engine-backup.sh index f6450f0..270de59 100755 --- a/packaging/bin/engine-backup.sh +++ b/packaging/bin/engine-backup.sh @@ -645,6 +645,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/37809 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ica0c8e4b3bc7fd6b06f762fa0bbe00058f16943d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Yedidyah Bar David <d...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches