diff --git a/firewalld.spec b/firewalld.spec index 18ca8aec3f04922e9fb0b43824166215d84a262c..50eb532ea99d7eddcc3bc8524d8383ff5c77ba24 100644 --- a/firewalld.spec +++ b/firewalld.spec @@ -1,6 +1,6 @@ Name: firewalld Version: 1.2.6 -Release: 6 +Release: 7 Summary: A firewall daemon with D-Bus interface providing a dynamic firewall License: GPLv2+ URL: http://www.firewalld.org @@ -125,6 +125,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, @@ -244,6 +249,12 @@ sed -i "s/CleanupModulesOnExit=no/CleanupModulesOnExit=yes/g" %{_sysconfdir}/fir %{_datadir}/firewalld/testsuite/python/firewalld_test.py %changelog +* Wed Aug 28 2024 zhouyihang - 1.2.6-7 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:fix broken symbolic link after package remove + * Thu Jul 11 2024 zhouyihang - 1.2.6-6 - Type:requirement - ID:NA