Ivan Tomica

OwnCloud upgrade – 8.2.1 to 8.2.2

So, today I finally made some time to upgrade my OwnCloud instance. It’s been bugging me for an update for quite some time now but I just haven’t had time to do it. Besides the lack of time I have had some issues with (by now ex) VPS provider regarding disk performance, but that’s the story on its own.

Anyways, I finally got around to update OwnCloud when it gave some weird error that it couldn’t replace site with new version:

Unable to move ~/_oc-upgrade/8.2.2.2/core/resources to ~/resources

Catch was in one of the files which had wrong version number specified. After I changed:

protected function getWhitelist(){
$strList = file_get_contents(dirname(__DIR__) . '/files.json');
$fullList = json_decode($strList, true);
$list = $fullList['8.1'];
return $list;
}

to:

protected function getWhitelist(){
$strList = file_get_contents(dirname(__DIR__) . '/files.json');
$fullList = json_decode($strList, true);
$list = $fullList['8.2'];
return $list;
}

in ~/apps/updater/lib/location/core.php upgrade went just fine. :-)

About 
Sysadmin on the everlasting journey of learning. Always in search for an opportunity to prove myself and to learn something new. My addiction is learning and my main goal is to excel in every aspect of Linux/Unix system administration.

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *