[docker-io/el6] need to leave chkconfig --add in post to clean up the issue for people updating

Adam Miller maxamillion at fedoraproject.org
Thu Jun 19 20:41:59 UTC 2014


commit 8d183dd1f4febd9b5bfd111d64d6cd8c3ec8ce86
Author: Adam Miller <admiller at redhat.com>
Date:   Thu Jun 19 15:40:41 2014 -0500

    need to leave chkconfig --add in post to clean up the issue for people updating

 docker-io.spec |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/docker-io.spec b/docker-io.spec
index 3ff92e7..2e0faac 100644
--- a/docker-io.spec
+++ b/docker-io.spec
@@ -134,11 +134,7 @@ getent group docker > /dev/null || %{_sbindir}/groupadd -r docker
 exit 0
 
 %post
-# Only do this on install, don't need to re-add each update
-if [ "$1" -eq "1" ] ; then
-  # install but don't activate
-  /sbin/chkconfig --add docker
-fi
+/sbin/chkconfig --add docker
 
 %preun
 # Only perform these tasks when erasing, not during updates
@@ -179,7 +175,7 @@ fi
 
 %changelog
 * Thu Jun 19 2014 Adam Miller <maxamillion at fedoraproject.org> - 1.0.0-5
-- Fix up post, preun, postun to handle tasks conditionally based on 
+- Fix up preun, postun to handle tasks conditionally based on 
   update vs install vs erase
 
 * Wed Jun 18 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 1.0.0-4


More information about the scm-commits mailing list