diff --git a/firewalld.spec b/firewalld.spec index fe90ecbd59391c8bcee82ebc9f2ac7117b24be83..a9e67a0958ebd23cf4ea1ca7c320e67ab14658c2 100644 --- a/firewalld.spec +++ b/firewalld.spec @@ -1,6 +1,6 @@ Name: firewalld Version: 0.6.6 -Release: 8 +Release: 9 Summary: A firewall daemon with D-Bus interface providing a dynamic firewall License: GPLv2+ URL: http://www.firewalld.org @@ -105,6 +105,11 @@ dd if=/dev/zero of=$RPM_BUILD_ROOT/%{_datadir}/firewalld/firewalld-tmp-mmap bs=4 %postun %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 # If we don't yet have a symlink or existing file for firewalld.conf, @@ -196,6 +201,12 @@ fi %changelog +* Tue Aug 27 2024 zhouyihang - 0.6.6-9 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:fix broken symbolic link after package remove + * Fri Jul 05 2024 zhouyihang - 0.6.6-8 - Type:bugfix - ID:NA