Commit 4c6dba29 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Copyedit.

parent a7aa6778
...@@ -132,6 +132,9 @@ sub upgrade { ...@@ -132,6 +132,9 @@ sub upgrade {
# - And, if list is not closed, import owners/moderators from those files # - And, if list is not closed, import owners/moderators from those files
# into database. # into database.
if (lower_version($previous_version, '6.2.33b.1')) { if (lower_version($previous_version, '6.2.33b.1')) {
$log->syslog('notice',
'Restoring users of ALL lists...it may take a while...');
my $all_lists = Sympa::List::get_lists('*', skip_sync_admin => 1); my $all_lists = Sympa::List::get_lists('*', skip_sync_admin => 1);
foreach my $list (@{$all_lists || []}) { foreach my $list (@{$all_lists || []}) {
next unless $list; next unless $list;
...@@ -162,26 +165,16 @@ sub upgrade { ...@@ -162,26 +165,16 @@ sub upgrade {
} }
} }
#XXX# Always update config.bin files while upgrading # Always update config.bin files while upgrading.
#XXXConf::delete_binaries(); # This is especially useful for character encoding reasons.
## Always update config.bin files while upgrading
## This is especially useful for character encoding reasons
$log->syslog('notice', $log->syslog('notice',
'Rebuilding config.bin files for ALL lists...it may take a while...'); 'Rebuilding config.bin files for ALL lists...it may take a while...');
my $all_lists = Sympa::List::get_lists('*', 'reload_config' => 1); my $all_lists = Sympa::List::get_lists('*', 'reload_config' => 1);
# Recreate admin_table entries.
## Empty the admin_table entries and recreate them $log->syslog('notice',
$log->syslog('notice', 'Rebuilding the admin_table...'); 'Rebuilding the admin_table...it may take a while...');
foreach my $list (@{$all_lists || []}) { # See GH #71
if ($all_lists and @$all_lists) { $list->sync_include_admin;
foreach my $list (@$all_lists) {
$list->sync_include_admin;
}
} else {
# Prevent empty admin table (GH #71).
$log->syslog('notice',
'Skipping rebuild, no list config files found');
} }
## Migration to tt2 ## Migration to tt2
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment