fix broken symbolic link after package remove
(cherry picked from commit c7113707cffbc4bb00070eff9eba19b3f3155714)
This commit is contained in:
parent
ec1ff0c973
commit
11eb600fab
@ -1,6 +1,6 @@
|
|||||||
Name: firewalld
|
Name: firewalld
|
||||||
Version: 1.0.2
|
Version: 1.0.2
|
||||||
Release: 10
|
Release: 11
|
||||||
Summary: A firewall daemon with D-Bus interface providing a dynamic firewall
|
Summary: A firewall daemon with D-Bus interface providing a dynamic firewall
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.firewalld.org
|
URL: http://www.firewalld.org
|
||||||
@ -123,6 +123,11 @@ dd if=/dev/zero of=$RPM_BUILD_ROOT/%{_datadir}/firewalld/firewalld-tmp-mmap bs=4
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart firewalld.service
|
%systemd_postun_with_restart firewalld.service
|
||||||
|
if [ $1 -eq 0 ]; then
|
||||||
|
if [ -L %{_sysconfdir}/firewalld/firewalld.conf ] && [ ! -e %{_sysconfdir}/firewalld/firewalld.conf ]; then
|
||||||
|
rm -f %{_sysconfdir}/firewalld/firewalld.conf
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
# If we don't yet have a symlink or existing file for firewalld.conf,
|
# If we don't yet have a symlink or existing file for firewalld.conf,
|
||||||
@ -245,6 +250,12 @@ sed -i "s/CleanupModulesOnExit=no/CleanupModulesOnExit=yes/g" %{_sysconfdir}/fir
|
|||||||
%{_datadir}/firewalld/testsuite/python/firewalld_test.py
|
%{_datadir}/firewalld/testsuite/python/firewalld_test.py
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 27 2024 zhouyihang <zhouyihang3@h-partners.com> - 1.0.2-11
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix broken symbolic link after package remove
|
||||||
|
|
||||||
* Fri Jul 05 2024 zhouyihang <zhouyihang3@h-partners.com> - 1.0.2-10
|
* Fri Jul 05 2024 zhouyihang <zhouyihang3@h-partners.com> - 1.0.2-10
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user