!19 Fix uninstall error when service not stopped
From: @zhangsong234 Reviewed-by: @jing-rui Signed-off-by: @jing-rui
This commit is contained in:
commit
4bfa132698
@ -4,7 +4,7 @@
|
|||||||
#Basic Information
|
#Basic Information
|
||||||
Name: lxcfs
|
Name: lxcfs
|
||||||
Version: 4.0.5
|
Version: 4.0.5
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: FUSE filesystem for LXC
|
Summary: FUSE filesystem for LXC
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: http://linuxcontainers.org
|
URL: http://linuxcontainers.org
|
||||||
@ -57,10 +57,11 @@ install -d -m 0755 %{buildroot}%{_localstatedir}/lib/lxc/%{name}/
|
|||||||
%pre
|
%pre
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
%systemd_preun lxcfs
|
||||||
|
|
||||||
%post
|
%post
|
||||||
ret=`systemctl is-active lxcfs`
|
systemctl status lxcfs | grep 'Active:' | grep 'running'
|
||||||
if [ "$ret" == "active" ]; then
|
if [ $? -eq 0 ]; then
|
||||||
systemctl restart lxcfs
|
systemctl restart lxcfs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user