Skip to content

Commit

Permalink
Merge pull request #653 from ikedas/issue-652 by ikedas
Browse files Browse the repository at this point in the history
Improve handling of missing `sympa/web_tt2` during upgrade #652
  • Loading branch information
ikedas authored Jun 19, 2019
2 parents 5f2756f + 6db6f9b commit 274d6f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/Sympa/Upgrade.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1319,8 +1319,11 @@ sub upgrade {
$log->syslog('notice',
'Setting web interface colors to new defaults.');
fix_colors(Sympa::Constants::CONFIG);
$log->syslog('info', 'Saving main web_tt2 directory');
save_web_tt2("$Conf::Conf{'etc'}/web_tt2");

if (-d "$Conf::Conf{'etc'}/web_tt2") {
$log->syslog('info', 'Saving main web_tt2 directory');
save_web_tt2("$Conf::Conf{'etc'}/web_tt2");
}
my @robots = Sympa::List::get_robots();
foreach my $robot (@robots) {
if (-f "$Conf::Conf{'etc'}/$robot/robot.conf") {
Expand Down

0 comments on commit 274d6f1

Please sign in to comment.