!8 [sync] PR-6: 修复卸载软件包时报错删除文件不存在
From: @openeuler-sync-bot Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
f8a66e8819
@ -1,6 +1,6 @@
|
|||||||
Name: ovirt-cockpit-sso
|
Name: ovirt-cockpit-sso
|
||||||
Version: 0.1.4
|
Version: 0.1.4
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Provides SSO from oVirt Administration Portal to Cockpit
|
Summary: Provides SSO from oVirt Administration Portal to Cockpit
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/oVirt/%{name}
|
URL: https://github.com/oVirt/%{name}
|
||||||
@ -74,8 +74,12 @@ esac
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
0)
|
0)
|
||||||
## package is being removed
|
## package is being removed
|
||||||
|
if [[ -e %{app_root_dir}/config/cockpit/ws-certs.d ]]; then
|
||||||
rm %{app_root_dir}/config/cockpit/ws-certs.d || true
|
rm %{app_root_dir}/config/cockpit/ws-certs.d || true
|
||||||
|
fi
|
||||||
|
if [[ -e %{app_root_dir}/ca.pem ]]; then
|
||||||
rm %{app_root_dir}/ca.pem || true
|
rm %{app_root_dir}/ca.pem || true
|
||||||
|
fi
|
||||||
|
|
||||||
## TODO: this is not working but would be better approach:
|
## TODO: this is not working but would be better approach:
|
||||||
## /bin/firewall-cmd --permanent --zone=public --delete-service=ovirt-cockpit-sso
|
## /bin/firewall-cmd --permanent --zone=public --delete-service=ovirt-cockpit-sso
|
||||||
@ -105,5 +109,8 @@ systemctl daemon-reload
|
|||||||
%config %verify(not md5 size mtime) %{app_root_dir}/config/cockpit/cockpit.conf
|
%config %verify(not md5 size mtime) %{app_root_dir}/config/cockpit/cockpit.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 16 2022 wangdi <wangdi@kylinos.cn> - 0.1.4-2
|
||||||
|
- fix warning of failing to delete files when uninstall
|
||||||
|
|
||||||
* Tue Jul 06 2021 weishaokun <weishaokun@kylinos.cn> - 0.1.4
|
* Tue Jul 06 2021 weishaokun <weishaokun@kylinos.cn> - 0.1.4
|
||||||
- update package
|
- update package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user