Unverified Commit 274d6f18 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #653 from ikedas/issue-652 by ikedas

Improve handling of missing `sympa/web_tt2` during upgrade #652
parents 5f2756f8 6db6f9b8
...@@ -1319,8 +1319,11 @@ sub upgrade { ...@@ -1319,8 +1319,11 @@ sub upgrade {
$log->syslog('notice', $log->syslog('notice',
'Setting web interface colors to new defaults.'); 'Setting web interface colors to new defaults.');
fix_colors(Sympa::Constants::CONFIG); 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(); my @robots = Sympa::List::get_robots();
foreach my $robot (@robots) { foreach my $robot (@robots) {
if (-f "$Conf::Conf{'etc'}/$robot/robot.conf") { if (-f "$Conf::Conf{'etc'}/$robot/robot.conf") {
......
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