]> git.pld-linux.org Git - packages/dlm.git/commitdiff
- {pre,post}un scripts fixed
authorBartek Szady <bszx@bszx.eu>
Wed, 30 Mar 2016 08:31:14 +0000 (10:31 +0200)
committerBartek Szady <bszx@bszx.eu>
Wed, 30 Mar 2016 08:31:14 +0000 (10:31 +0200)
dlm.spec

index 3676c0c2cb82088f5f2513d6267a3ea7007c8f79..15e1d89d7cb4d20e7fcf1d90850e4ba873c63a38 100644 (file)
--- 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
This page took 0.079636 seconds and 4 git commands to generate.