]> git.pld-linux.org Git - packages/heartbeat.git/commitdiff
- Req user-haclient
authorpascalek <pascalek@pld-linux.org>
Sat, 10 May 2003 10:14:45 +0000 (10:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    heartbeat.spec -> 1.33

heartbeat.spec

index 89c172f73f569ea930438a5df3423b23802d2e37..fb91e9da994570d10dfd91c12a6737a004702fa6 100644 (file)
@@ -19,9 +19,7 @@ URL:          http://linux-ha.org/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 BuildRequires: links
 Requires(pre): /sbin/chkconfig
-Requires(pre): /usr/bin/getgid
-Requires(pre): /usr/sbin/groupadd
-Requires(post):        /usr/sbin/groupdel
+Requires(pre): user-haclient
 Requires:      syslogdaemon
 
 %description
@@ -89,16 +87,6 @@ rm -f doc/{*.html,*.8,COPYING,Makefile*}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pre
-if [ -n "`/usr/bin/getgid haclient`" ]; then
-       if [ "`/usr/bin/getgid haclient`" != "60" ]; then
-               echo "Error: group haclient doesn't have gid=60. Correct this before installing heartbeat." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/groupadd -g 60 -r haclient
-fi
-
 %post
 /sbin/chkconfig --add heartbeat
 
@@ -121,11 +109,6 @@ if [ "$1" = "0" ]; then
        fi
 fi
 
-%postun
-if [ "$1" = "0" ]; then
-       /usr/sbin/groupdel haclient 2>/dev/null
-fi
-
 %files
 %defattr(644,root,root,755)
 %doc doc/*
This page took 0.051315 seconds and 4 git commands to generate.