!7 [sync] PR-5: 卸载软件包后删除vmconsole用户
From: @openeuler-sync-bot Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
68ffbf80d3
@ -19,10 +19,10 @@
|
|||||||
Summary: oVirt VM console
|
Summary: oVirt VM console
|
||||||
Name: ovirt-vmconsole
|
Name: ovirt-vmconsole
|
||||||
Version: 1.0.9
|
Version: 1.0.9
|
||||||
Release: 1
|
Release: 2
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: http://www.ovirt.org
|
URL: http://www.ovirt.org
|
||||||
Source: http://resources.ovirt.org/pub/src/%{name}/%{name}-%{package_version}.tar.gz
|
Source: http://resources.ovirt.org/pub/src/ovirt-vmconsole-1.0.9-1.tar.gz
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
@ -138,6 +138,8 @@ getent passwd %{name} >/dev/null || \
|
|||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
# see [policy-priority]
|
# see [policy-priority]
|
||||||
%selinux_modules_uninstall -s %{selinuxtype} -p 400 %{modulename}
|
%selinux_modules_uninstall -s %{selinuxtype} -p 400 %{modulename}
|
||||||
|
# remove vmconsole user if uninstall
|
||||||
|
userdel %{name} || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
@ -247,6 +249,9 @@ install -m 644 "src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-sshd/ovirt-vmcon
|
|||||||
%{_unitdir}/ovirt-vmconsole-proxy-sshd.service
|
%{_unitdir}/ovirt-vmconsole-proxy-sshd.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 16 2022 wangdi <wangdi@kylinos.cn> - 1.0.9-2
|
||||||
|
- remove user ovirt-vmconsole after removing package
|
||||||
|
|
||||||
* Tue Jul 6 2021 chenjian <chenjian@kylinos.cn> - 1.0.9-1
|
* Tue Jul 6 2021 chenjian <chenjian@kylinos.cn> - 1.0.9-1
|
||||||
- update to 1.0.9-1
|
- update to 1.0.9-1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user