[chrony] fix service name in %%triggerun

Miroslav Lichvar mlichvar at fedoraproject.org
Fri Jun 24 15:38:04 UTC 2011


commit d3ff70c3190cfb12d0dac3db4fdf2630d81ddd9a
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date:   Fri Jun 24 14:02:56 2011 +0200

    fix service name in %%triggerun

 chrony.spec |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/chrony.spec b/chrony.spec
index c58c364..45a886f 100644
--- a/chrony.spec
+++ b/chrony.spec
@@ -94,9 +94,10 @@ getent passwd chrony > /dev/null || /usr/sbin/useradd -r -g chrony \
 /sbin/install-info  %{_infodir}/chrony.info.gz %{_infodir}/dir &> /dev/null || :
 
 %triggerun -- chrony < 1.25
-if /sbin/chkconfig --level 3 chronyd ; then
-	/bin/systemctl enable chronyd.esrvice &> /dev/null || :
+if /sbin/chkconfig --level 3 chronyd; then
+        /bin/systemctl enable chronyd.service &> /dev/null
 fi
+:
 
 %preun
 if [ "$1" -eq 0 ]; then


More information about the scm-commits mailing list