!93 [sync] PR-92: fix broken symbolic link after package remove

From: @openeuler-sync-bot 
Reviewed-by: @sunsuwan 
Signed-off-by: @sunsuwan
This commit is contained in:
openeuler-ci-bot 2024-08-29 09:32:51 +00:00 committed by Gitee
commit 9d449d33a9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <zhouyihang3@h-partners.com> - 1.2.6-7
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix broken symbolic link after package remove
* Thu Jul 11 2024 zhouyihang <zhouyihang3@h-partners.com> - 1.2.6-6
- Type:requirement
- ID:NA