hguemar pushed to redis (master). "Fix broken scriptlet (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 9 22:55:54 UTC 2015


>From 456d15d14436dfb7ce98127d40d766f08f4d52f2 Mon Sep 17 00:00:00 2001
From: Haikel Guemar <hguemar at redhat.com>
Date: Fri, 10 Apr 2015 00:55:41 +0200
Subject: Fix broken scriptlet

there's a missing fi in %preun scriptlet that only affects EL6 build

diff --git a/redis.spec b/redis.spec
index 035816f..911afb6 100644
--- a/redis.spec
+++ b/redis.spec
@@ -198,10 +198,11 @@ chkconfig --add %{name}-sentinel
 %systemd_preun %{name}-sentinel.service
 %else
 if [ $1 -eq 0 ] ; then
-service %{name} stop &> /dev/null
-chkconfig --del %{name} &> /dev/null
-service %{name}-sentinel stop &> /dev/null
-chkconfig --del %{name}-sentinel &> /dev/null
+    service %{name} stop &> /dev/null
+    chkconfig --del %{name} &> /dev/null
+    service %{name}-sentinel stop &> /dev/null
+    chkconfig --del %{name}-sentinel &> /dev/null
+fi
 %endif
 
 %postun
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/redis.git/commit/?h=master&id=456d15d14436dfb7ce98127d40d766f08f4d52f2


More information about the scm-commits mailing list