solve firewalld error when install iptables-nft
This commit is contained in:
parent
d3ee28f8a1
commit
9e6870cfdf
@ -2,7 +2,7 @@
|
||||
%global legacy_actions %{_libexecdir}/initscripts/legacy-actions
|
||||
Name: iptables
|
||||
Version: 1.8.4
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: IP packet filter administration utilities
|
||||
License: GPLv2 and Artistic Licence 2.0 and ISC
|
||||
URL: https://www.netfilter.org/
|
||||
@ -215,6 +215,13 @@ fi
|
||||
--slave $manpfx-restore.8.gz arptables-restore-man $manpfx-nft-restore.8.gz \
|
||||
--slave $lepfx-helper arptables-helper $lepfx-nft-helper
|
||||
|
||||
if [ x`rpm -qa firewalld` != x ]; then
|
||||
firews=`systemctl status firewalld | grep Active | awk '{print $3}'`
|
||||
if [ "$firews" == "(running)" ]; then
|
||||
%systemd_postun_with_restart firewalld.service
|
||||
fi
|
||||
fi
|
||||
|
||||
%postun nft
|
||||
if [ $1 -eq 0 ]; then
|
||||
for cmd in iptables ebtables arptables; do
|
||||
@ -309,6 +316,12 @@ fi
|
||||
%{_mandir}/man8/xtables-legacy*
|
||||
|
||||
%changelog
|
||||
* Tue Jun 2 2020 gaihuiying <gaihuiying1@huawei.com> - 1.8.4-5
|
||||
- Type: bugfix
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: solve firewalld error when install iptables-nft
|
||||
|
||||
* Wed May 6 2020 zhouxudong <zhouxudong8@huawei.com> - 1.8.4-4
|
||||
- Type: bugfix
|
||||
- ID: NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user