From c2d37e8b836ee01825adc19b316a1bb090bbdd68 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20=C5=9Awi=C4=85tek?= Date: Sun, 26 Feb 2012 23:03:12 +0100 Subject: [PATCH] - test -n seems to fail, "not" -z seems to work properly --- apache.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.46.0