Package: libapache2-mpm-itk Version: 2.4.7-02-1.1+deb8u1 Severity: normal Tags: patch
Hi, I have been faced to an installation issue of the package. During installation process, postinst script failed 2 times: == Error messages == /var/lib/dpkg/info/libapache2-mpm-itk.postinst: 9: [: !=: unexpected operator /var/lib/dpkg/info/libapache2-mpm-itk.postinst: 291: [: !=: unexpected operator == Explanation == In both case, a command's result is not handled correctly as a string. When the command "a2query -M" is executed while the apache2 server is not running, the command returns an empty string and bash fails the comparison. == Patch == Suggested patch that have fixed my issue: /var/lib/dpkg/info/libapache2-mpm-itk.postinst:9 - if [ $(a2query -M) != 'prefork' ] ; then + if [ "$(a2query -M)" != "prefork" ] ; then /usr/share/apache2/apache2-maintscript-helper:291 - if [ $CUR_MPM != "$MPM" ] ; then + if [ "$CUR_MPM" != "$MPM" ] ; then Thank you for taking care of this bug. Best, Florent -- System Information: Debian Release: 8.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages libapache2-mpm-itk depends on: ii apache2-bin [apache2-api-20120211] 2.4.10-10+deb8u5 ii libc6 2.19-18 ii libcap2 1:2.24-8 libapache2-mpm-itk recommends no packages. libapache2-mpm-itk suggests no packages.

