[Owncloud] Packages format

Victor Dubiniuk victor.dubiniuk at gmail.com
Sun Jul 22 13:28:53 UTC 2012


Hi,

I started ownCloud updater [1] development and it is quite usable now.

It works this way:
- creates *backup *directory inside the ownCloud root.
- extracts the package content into the *backup/packageVersion*
- makes the copy of the current instance (except* data *dir) to *
backup/currentVersion-randomstring*
- adds to the include path all required paths relative to *
backup/currentVersion-randomstring*
- moves all folders except the * data *dir from the current instance
to*backup/tmp
*
- moves all folders from *backup/packageVersion *to the current version
- copy old config.php to the* config* directory.

It takes into account that *apps* and *3rdparty *directories can be placed
somewhere outside OC root directory but I haven't tested it with multiple
app directories yet.

What is in TODO list:
- cleanup after the upgrade is completed
- ability to revert already moved directories on error.

The only issue is related to the package format: as soon as the release
packages are provided in *bz2 *it's not possible for the most of
environments to extract the package content due to the bz support missing.
For now it is required to fill in 2 variables (url and version of the
package) explicitly in updater/ajax/admin.php

I wouldn't mind if anybody clone it or even rewrite to be merged into the
master since I'm about to jump into the train.
Another bad news is that I promised my wife not to write a single line of
code during the vacations ;)
I'll be back on the August, 8 so it won't last too long.

[1] https://gitorious.org/vicdeo/updater

Victor Dubiniuk.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20120722/5464f6ea/attachment.html>


More information about the Owncloud mailing list