Skip to content

Commit

Permalink
Fix lvm2 script
Browse files Browse the repository at this point in the history
Change-Id: I0ed4d4b0b5e27c26f9e388e09faa66b5c9be02bd
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2864
Tested-by: gerrit-photon <[email protected]>
Reviewed-by: Alexey Makhalov <[email protected]>
  • Loading branch information
ganboing authored and YustasSwamp committed Jun 5, 2017
1 parent 9e59fdb commit c2b36f2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions SPECS/lvm2/lvm2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ if [ $1 -eq 1 ];then
systemctl start dm-event.socket
fi
%preun -n device-mapper-event
if [ $1 -eq 0];then
if [ $1 -eq 0 ];then
# This is erase operation
systemctl stop dm-event.socket
fi
Expand All @@ -160,11 +160,9 @@ Requires: device-mapper-libs = %{version}-%{release}
This package contains the device-mapper event daemon shared library,
libdevmapper-event.

%post -n device-mapper-event-libs
/sbin/ldconfig
%post -n device-mapper-event-libs -p /sbin/ldconfig

%postun -n device-mapper-event-libs
/sbin/ldconfig
%postun -n device-mapper-event-libs -p /sbin/ldconfig

%package -n device-mapper-event-devel
Summary: Development libraries and headers for the device-mapper event daemon
Expand Down

0 comments on commit c2b36f2

Please sign in to comment.