[ntp/f14/master] suppress chkconfig output in %%post (#629285)

Miroslav Lichvar mlichvar at fedoraproject.org
Wed Sep 15 15:40:56 UTC 2010


commit 4d6f01a182d53aa808c2635609b7a685e03c08d7
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date:   Wed Sep 15 17:26:16 2010 +0200

    suppress chkconfig output in %%post (#629285)

 ntp.spec |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/ntp.spec b/ntp.spec
index ecb7552..8aac6ea 100644
--- a/ntp.spec
+++ b/ntp.spec
@@ -257,13 +257,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add ntpd
-/sbin/chkconfig ntpd && systemctl enable ntpd.service &> /dev/null ||
+/sbin/chkconfig ntpd &> /dev/null &&
+	systemctl enable ntpd.service &> /dev/null ||
 	systemctl daemon-reload &> /dev/null
 :
 
 %post -n ntpdate
 /sbin/chkconfig --add ntpdate
-/sbin/chkconfig ntpdate && systemctl enable ntpdate.service &> /dev/null ||
+/sbin/chkconfig ntpdate &> /dev/null &&
+	systemctl enable ntpdate.service &> /dev/null ||
 	systemctl daemon-reload &> /dev/null
 :
 


More information about the scm-commits mailing list