upgrades remove cache
fix post update dates add version tag to server status
This commit is contained in:
parent
5e4b39f41c
commit
7d0ca32de6
4 changed files with 21 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
6.8.1
|
||||
- fix [ 1364965 ] Assets in Trash give Permission Denied in stead of Not
|
||||
Found
|
||||
- fix [ 1372680 ] dashboard needs hide option
|
||||
- Removed duplicate processing of metadata.
|
||||
- fix [ 1373649 ] Username isn't populated in 6.8.0 Discussions
|
||||
- fix [ 1373707 ] File Pile not uploading images
|
||||
|
|
@ -24,6 +25,8 @@
|
|||
need to do to fix it is upgrade to this release and then run
|
||||
sbin/rebuildLineage.pl
|
||||
- fix [ 1356544 ] FAQ template in collaboration has wrong anchors
|
||||
- The upgrade script now wipes out the file cache in case it would cause
|
||||
any conflicts.
|
||||
- fix [ 1373493 ] Upgrade script fails because parameters are not quoted
|
||||
- Upgrade now uses --results-file parameter on mysqldump because some
|
||||
operating system don't handle UTF-8 characters through their pipes.
|
||||
|
|
|
|||
|
|
@ -26,10 +26,17 @@ upgradeRichEditor();
|
|||
fixCSFaqTemplateAnchors();
|
||||
updateProfileSystem();
|
||||
convertDashboardPrefs();
|
||||
fixPosts();
|
||||
|
||||
finish(); # this line required
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
sub fixPosts {
|
||||
print "\tFixing posts.\n" unless ($quiet);
|
||||
WebGUI::SQL->write("update Post set dateUpdated=".time()." where dateUpdated=0");
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
sub updateProfileSystem {
|
||||
print "\tUpdating user profile system.\n" unless ($quiet);
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ sub handler {
|
|||
my $r = shift;
|
||||
$session{site} = shift || $r->dir_config('WebguiConfig');
|
||||
my $s = Apache2::ServerUtil->server;
|
||||
$s->add_version_component("WebGUI/".$WebGUI::VERSION);
|
||||
$session{wguri} = $r->uri;
|
||||
$session{config} = WebGUI::Config::getConfig($s->dir_config('WebguiRoot'),$session{site});
|
||||
### Add Apache Request stuff to global session. Yes, I know the global hash will eventually be deprecated.
|
||||
|
|
|
|||
|
|
@ -164,11 +164,16 @@ foreach my $filename (keys %{$configs}) {
|
|||
order by dateApplied desc, webguiVersion desc limit 1",$dbh);
|
||||
unless ($history) {
|
||||
print "\tPreparing site for upgrade.\n" unless ($quiet);
|
||||
WebGUI::Session::open($webguiRoot,$filename);
|
||||
WebGUI::Setting::remove('specialState');
|
||||
WebGUI::Setting::add('specialState','upgrading');
|
||||
WebGUI::Session::close();
|
||||
rmtree($configs->{$filename}{uploadsPath}.$slash."temp");
|
||||
WebGUI::Session::open($webguiRoot,$filename);
|
||||
WebGUI::Setting::remove('specialState');
|
||||
WebGUI::Setting::add('specialState','upgrading');
|
||||
WebGUI::Session::close();
|
||||
print "\tDeleting temp files.\n" unless ($quiet);
|
||||
my $path = $configs->{$filename}{uploadsPath}.$slash."temp";
|
||||
rmtree($path) unless ($path eq "" || $path eq "/" || $path eq "/data");
|
||||
print "\tDeleting file cache.\n" unless ($quiet);
|
||||
$path = $configs->{$filename}{fileCacheRoot}||"/tmp/WebGUICache";
|
||||
rmtree($path) unless ($path eq "" || $path eq "/" || $path eq "/data");
|
||||
}
|
||||
$dbh->disconnect;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue