]> git.pld-linux.org Git - packages/apache.git/commitdiff
- fix %%pre script
authorArtur Frysiak <artur@frysiak.net>
Tue, 21 Sep 1999 20:49:52 +0000 (20:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache.spec -> 1.44

apache.spec

index c6aa557a682686e0110e3245da5d8342916e36f7..5c337d6d27c536d165a0498f3357a1a6e42f7d3c 100644 (file)
@@ -22,7 +22,10 @@ Copyright:   BSD-like
 Provides:      httpd
 Provides:      webserver
 Prereq:                /sbin/chkconfig
-Prereq:                %{_sbindir}/useradd
+Prereq:                /usr/sbin/useradd
+Prereq:                /usr/bin/getgid
+Prereq:                /usr/bin/id
+Prereq:                sh-utils >= 2.0
 Requires:      rc-scripts
 URL:           http://www.apache.org/
 BuildRoot:     /tmp/%{name}-%{version}-root
@@ -161,8 +164,8 @@ gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
        ABOUT_APACHE src/CHANGES KEYS README README.v6
 
 %pre
-if [ -n `id -g http` ]; then
-       if [ "`id -g http`" != "51" ]; then
+if [ -n `getgid http` ]; then
+       if [ "`getgid http`" != "51" ]; then
                echo "Warning: group http haven't gid=51. Corect this before install apache"
                exit 1
        fi
This page took 0.092969 seconds and 4 git commands to generate.