From: Bartosz Świątek Date: Sun, 26 Feb 2012 22:03:12 +0000 (+0100) Subject: - test -n seems to fail, "not" -z seems to work properly X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=c2d37e8b836ee01825adc19b316a1bb090bbdd68;p=packages%2Fapache.git - test -n seems to fail, "not" -z seems to work properly --- diff --git a/apache.spec b/apache.spec index b14a27c..ba4154d 100644 --- a/apache.spec +++ b/apache.spec @@ -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