diff --git a/iptables.spec b/iptables.spec index 888eb0e..5446ecf 100644 --- a/iptables.spec +++ b/iptables.spec @@ -178,7 +178,7 @@ update-alternatives \ --slave "%_sbindir/ip6tables-restore" ip6tables-restore "%_sbindir/xtables-legacy-multi" \ --slave "%_sbindir/ip6tables-save" ip6tables-save "%_sbindir/xtables-legacy-multi" -%postun +%preun if test "$1" = 0; then update-alternatives --remove iptables "%_sbindir/xtables-legacy-multi" fi @@ -198,7 +198,7 @@ update-alternatives --install "%_sbindir/ebtables" ebtables "%_sbindir/xtables-n --slave "%_sbindir/ebtables-restore" ebtables-restore "%_sbindir/xtables-nft-multi" \ --slave "%_sbindir/ebtables-save" ebtables-save "%_sbindir/xtables-nft-multi" -%postun backend-nft +%preun backend-nft if test "$1" = 0; then update-alternatives --remove iptables "%_sbindir/xtables-nft-multi" update-alternatives --remove arptables "%_sbindir/xtables-nft-multi"