- fixed update from RHEL-6 to RHEL-7 (RHBZ#1043901)
This commit is contained in:
parent
e3b3aa4924
commit
b16a3888f1
@ -125,6 +125,16 @@ install -c -m 755 %{SOURCE4} %{buildroot}/%{legacy_actions}/iptables/save
|
|||||||
sed -e 's;iptables.init;ip6tables.init;g' -e 's;IPTABLES;IP6TABLES;g' < %{buildroot}/%{legacy_actions}/iptables/save > ip6tabes.save-legacy
|
sed -e 's;iptables.init;ip6tables.init;g' -e 's;IPTABLES;IP6TABLES;g' < %{buildroot}/%{legacy_actions}/iptables/save > ip6tabes.save-legacy
|
||||||
install -c -m 755 ip6tabes.save-legacy %{buildroot}/%{legacy_actions}/ip6tables/save
|
install -c -m 755 ip6tabes.save-legacy %{buildroot}/%{legacy_actions}/ip6tables/save
|
||||||
|
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%pre
|
||||||
|
for p in %{_sysconfdir}/alternatives/{iptables,ip6tables}.*; do
|
||||||
|
if [ -h "$p" ]; then
|
||||||
|
ipt=$(readlink "$p")
|
||||||
|
echo "Removing alternatives for ${p##*/} with path $ipt"
|
||||||
|
%{_sbindir}/alternatives --remove "${p##*/}" "$ipt"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -193,6 +203,9 @@ install -c -m 755 ip6tabes.save-legacy %{buildroot}/%{legacy_actions}/ip6tables/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 15 2014 Thomas Woerner <twoerner@redhat.com> 1.4.21-6
|
||||||
|
- fixed update from RHEL-6 to RHEL-7 (RHBZ#1043901)
|
||||||
|
|
||||||
* Tue Jan 14 2014 Jiri Popelka <jpopelka@redhat.com> - 1.4.21-5
|
* Tue Jan 14 2014 Jiri Popelka <jpopelka@redhat.com> - 1.4.21-5
|
||||||
- chmod /etc/sysconfig/ip[6]tables 755 -> 600
|
- chmod /etc/sysconfig/ip[6]tables 755 -> 600
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user