fix warning of failing to delete files when uninstall
(cherry picked from commit 564f318027aa5b19dbea2f648f9325b19775fd45)
This commit is contained in:
parent
123a6b5101
commit
5917e15d9a
@ -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
|
||||||
rm %{app_root_dir}/config/cockpit/ws-certs.d || true
|
if [[ -e %{app_root_dir}/config/cockpit/ws-certs.d ]]; then
|
||||||
rm %{app_root_dir}/ca.pem || 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
|
||||||
|
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