]> TLD Linux GIT Repositories - packages/apache.git/commitdiff
- test -n seems to fail, "not" -z seems to work properly
authorBartosz Świątek <shadzik@tld-linux.org>
Sun, 26 Feb 2012 22:03:12 +0000 (23:03 +0100)
committerBartosz Świątek <shadzik@tld-linux.org>
Sun, 26 Feb 2012 22:03:12 +0000 (23:03 +0100)
apache.spec

index b14a27c4a60a7f2b6fbc4b432fc4bbb7cf3c3914..ba4154d800b0ad7d009ce905c66fdb6dfddcab22 100644 (file)
@@ -2362,7 +2362,7 @@ if [ ! -L /etc/httpd/httpd.conf ]; then
 fi
 if [ -f /etc/sysconfig/httpd ]; then
        MPM=$(grep HTTPD_MPM /etc/sysconfig/httpd |sed 's,HTTPD_MPM=,,;s,",,g')
-       if [ -n $MPM ]; then
+       if [ ! -z $MPM ]; then
                echo "LoadModule mpm_${MPM}_module                modules/mod_mpm_${MPM}.so" > /etc/httpd/conf.d/10_mpm.conf.rpmnew
                cat /etc/httpd/conf.d/10_mpm.conf >> /etc/httpd/conf.d/10_mpm.conf.rpmnew
                mv /etc/httpd/conf.d/10_mpm.conf.rpmnew /etc/httpd/conf.d/10_mpm.conf