Fix sbin/upgrade.pl so that it handles forking upgrade scripts without

overwriting the config file changes in earlier upgrade scripts.
This commit is contained in:
Colin Kuskie 2008-12-31 00:20:54 +00:00
parent ea253f3fae
commit 208ea281b7
3 changed files with 22 additions and 1 deletions

View file

@ -243,10 +243,12 @@ foreach my $filename (keys %config) {
print "\tProcessing upgrade executable failed!\n";
fatalError();
}
##Do a dummy load of the config
WebGUI::Config->clearCache();
}
$config{$filename}{version} = $upgrade{$upgrade}{to};
$notRun = 0;
sleep 1; # Sleep a second to avoid adding asset revisions too quickly
sleep 1; # Sleep a second to avoid adding asset revisions too quickly
}
my $session = WebGUI::Session->open($webguiRoot,$filename);
print "\tSetting site upgrade completed..." unless ($quiet);