!5 卸载软件包后删除vmconsole用户

From: @crrs666 
Reviewed-by: @jxy_git 
Signed-off-by: @jxy_git
This commit is contained in:
openeuler-ci-bot 2022-03-16 06:22:49 +00:00 committed by Gitee
commit 53d06ccb80
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -19,10 +19,10 @@
Summary: oVirt VM console
Name: ovirt-vmconsole
Version: 1.0.9
Release: 1
Release: 2
License: GPLv3
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)
@ -138,6 +138,8 @@ getent passwd %{name} >/dev/null || \
if [ $1 -eq 0 ]; then
# see [policy-priority]
%selinux_modules_uninstall -s %{selinuxtype} -p 400 %{modulename}
# remove vmconsole user if uninstall
userdel %{name} || true
fi
%posttrans
@ -247,6 +249,9 @@ install -m 644 "src/ovirt-vmconsole-proxy/ovirt-vmconsole-proxy-sshd/ovirt-vmcon
%{_unitdir}/ovirt-vmconsole-proxy-sshd.service
%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
- update to 1.0.9-1