Comment 2 for bug 484120

Revision history for this message
Kristian Nielsen (knielsen) wrote : Re: "ERROR: 1136 Column count doesn't match value count at row 1" when installing mariadb-server-5.1

We have seen several cases of silent failures in the postinst script due to this construct:

    <cmd> | $ERR_LOGGER

This ignores the exit code of <cmd> by default, causing the `set -e` in
the script to not catch any errors here.

I suggest to not ignore the exit codes of commands in the pipe:

    set -o pipefail

This will make an error in a logged command immediately apparent by aborting
the install, rather than failing silently and leaving a broken install.