[packages/dlm] - {pre,post}un scripts fixed

bszx bszx at pld-linux.org
Wed Mar 30 10:33:24 CEST 2016


commit 6b2d6ffe8facf86945b2f227dcd5d12c97b365f7
Author: Bartek Szady <bszx at bszx.eu>
Date:   Wed Mar 30 10:31:14 2016 +0200

    - {pre,post}un scripts fixed

 dlm.spec | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/dlm.spec b/dlm.spec
index 3676c0c..15e1d89 100644
--- a/dlm.spec
+++ b/dlm.spec
@@ -7,7 +7,7 @@ Summary(pl.UTF-8):	Zarządca rozproszonych blokad ogólnego przeznaczenia
 Name:		dlm
 %define     _snap   4283123f0b13eafc46d825050c5142cf44be79c3
 Version:	4.0.3
-Release:	1
+Release:	2
 License:	LGPL v2.1+, GPL v2
 Group:		Libraries
 Source0:	https://git.fedorahosted.org/cgit/dlm.git/snapshot/%{name}-%{_snap}.tar.bz2
@@ -131,18 +131,18 @@ install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%systemd_post %{name}.service
-
-%preun
 /sbin/chkconfig --add %{name}
 %service %{name} restart
-%systemd_preun %{name}.service
+%systemd_post %{name}.service
 
-%postun
+%preun
 if [ "$1" = "0" ]; then
 	%service -q %{name} stop
 	/sbin/chkconfig --del %{name}
 fi
+%systemd_preun %{name}.service
+
+%postun
 %systemd_reload
 
 %post	libs -p /sbin/ldconfig
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dlm.git/commitdiff/6b2d6ffe8facf86945b2f227dcd5d12c97b365f7



More information about the pld-cvs-commit mailing list