]> git.pld-linux.org Git - packages/apache.git/commitdiff
- redirect error messages do stderr
authorArtur Frysiak <artur@frysiak.net>
Wed, 22 Sep 1999 07:14:19 +0000 (07:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache.spec -> 1.50

apache.spec

index 67bc6a68410ad6977eec580158715b11526e9d51..727b44f57a690e7ba2f93d47cf33852db364067d 100644 (file)
@@ -166,24 +166,24 @@ gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
 %pre
 if [ -n "`getgid http`" ]; then
        if [ "`getgid http`" != "51" ]; then
-               echo "Warning: group http haven't gid=51. Corect this before install apache"
+               echo "Warning: group http haven't gid=51. Corect this before install apache" 1>&2
                exit 1
        fi
 else
        /usr/sbin/groupadd -g 51 -r -f http
        if [ -f /var/db/group.db ]; then
-               /usr/bin/update-db
+               /usr/bin/update-db 1>&2
        fi
 fi
-if [ -n "`id -u http`" ]; then
+if [ -n "`id -u http 2>/dev/null`" ]; then
        if [ "`id -u http`" != "51" ]; then
-               echo "Warning: user http haven't gid=51. Corect this before install apache"
+               echo "Warning: user http haven't gid=51. Corect this before install apache" 1>&2
                exit 1
        fi
 else
        /usr/sbin/useradd -u 51 -r -d /home/httpd -s /bin/false -c "HTTP User" -g http -M http
        if [ -f /var/db/passwd.db ]; then
-               /usr/bin/update-db
+               /usr/bin/update-db 1>&2
        fi
 fi
 
This page took 0.044366 seconds and 4 git commands to generate.