]> git.pld-linux.org Git - packages/chrony.git/blobdiff - chrony.spec
- rel 2; fix-info-dir fix
[packages/chrony.git] / chrony.spec
index 03d1d4d39fca9d9d1bb5324a165042f65bf2cdb4..dba965bd713d4bcdb01fc904a9b3d40522f78dd0 100644 (file)
@@ -1,7 +1,7 @@
 Summary:       An NTP client/server
 Name:          chrony
 Version:       1.26
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Daemons
 URL:           http://chrony.tuxfamily.org/
@@ -82,7 +82,7 @@ rm -rf $RPM_BUILD_ROOT
 %useradd -u 246 -d %{_localstatedir}/lib/ntp -g ntp -c "NTP Daemon" ntp
 
 %post
-/usr/sbin/fix-info-dir -c %{_infodir}
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 /sbin/chkconfig --add chronyd
 %service chronyd restart
 
@@ -90,10 +90,10 @@ rm -rf $RPM_BUILD_ROOT
 if [ "$1" = "0" ]; then
        %service chronyd stop
        /sbin/chkconfig --del chronyd
-       /usr/sbin/fix-info-dir -c %{_infodir}
 fi
 
 %postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 if [ "$1" = "0" ]; then
        %userremove ntp
        %groupremove ntp
This page took 0.12406 seconds and 4 git commands to generate.