]> git.pld-linux.org Git - packages/sysstat.git/commitdiff
- fixed+standardized post
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 8 Sep 2003 08:32:24 +0000 (08:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    sysstat.spec -> 1.40

sysstat.spec

index 4b1d90daedc5ca1cc1680ad47b77878d1d5fb3ab..b3c7c0238178bb883f2bfe27825d7bc99418f3f1 100644 (file)
@@ -87,13 +87,11 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ "$1" = "1" ]; then
-       /sbin/chkconfig --add sysstat
-       echo "Run \"/etc/rc.d/init.d/sysstat start\" to start sysstat." >&2
+/sbin/chkconfig --add sysstat
+if [ -f /var/lock/subsys/sysstat ]; then
+       /etc/rc.d/init.d/sysstat restart >&2
 else
-       if [ -f /var/lock/subsys/sysstat ]; then
-               /etc/rc.d/init.d/sysstat restart >&2
-       fi
+       echo "Run \"/etc/rc.d/init.d/sysstat start\" to start sysstat." >&2
 fi
 
 %preun
This page took 0.096814 seconds and 4 git commands to generate.