Migrate limits from imaps to imap DB entry

tags/0.1.4_el5 0.1.4_el5
Daniel Berteaud 11 years ago
parent 8a97c4d939
commit 07711461cf
  1. 12
      root/etc/e-smith/db/configuration/migrate/ImapsLimits

@ -0,0 +1,12 @@
{
# Those limits are now defined on the imap entry
foreach my $prop (qw/ConcurrencyLimit ConcurrencyLimitPerIP ProcessMemoryLimit/){
my $imaps_value = $DB->get_prop_and_delete('imaps', $prop);
next unless ($imaps_value);
my $imap_value = $DB->get_prop('imap', $prop);
next if ($imap_value);
$DB->set_prop('imap', $prop, $imaps_value);
}
}
Loading…
Cancel
Save