* add preinst script to clear ipset from older installation (because
sets cannot be swapped if there type does not match.
+
+ * fix ipset remove order
-- Proxmox Support Team <support@proxmox.com> Fri, 28 Nov 2014 08:59:38 +0100
# remove unused list chains first
foreach my $chain (keys %$statushash) {
next if $statushash->{$chain}->{action} ne 'delete';
- next if $chain !~ m/-v[46]$/;
+ next if $chain =~ m/-v[46]$/;
$delete_cmdlist .= "flush $chain\n";
$delete_cmdlist .= "destroy $chain\n";
# the remove unused -v4 -v6 chains
foreach my $chain (keys %$statushash) {
next if $statushash->{$chain}->{action} ne 'delete';
- next if $chain =~ m/-v[46]$/;
+ next if $chain !~ m/-v[46]$/;
$delete_cmdlist .= "flush $chain\n";
$delete_cmdlist .= "destroy $chain\n";