Hi,<div><br></div><div>I started ownCloud updater [1] development and it is quite usable now.</div><div><br></div><div>It works this way:</div><div>- creates <b>backup </b>directory inside the ownCloud root.</div><div>- extracts the package content into the <b>backup/packageVersion</b></div>
<div>- makes the copy of the current instance (except<b> data </b>dir) to <b>backup/currentVersion-randomstring</b></div><div>- adds to the include path all required paths relative to <b>backup/currentVersion-randomstring</b></div>
<div>- moves all folders except the <b> data </b>dir from the current instance to<b> backup/tmp </b></div><div>- moves all folders from <b>backup/packageVersion </b>to the current version</div><div>- copy old config.php to the<b> config</b> directory.</div>
<div><br></div><div>It takes into account that <b>apps</b> and <b>3rdparty </b>directories can be placed somewhere outside OC root directory but I haven't tested it with multiple app directories yet.</div><div><br></div>
<div>What is in TODO list:</div><div>- cleanup after the upgrade is completed</div><div>- ability to revert already moved directories on error. </div><div><br></div><div>The only issue is related to the package format: as soon as the release packages are provided in <b>bz2 </b>it's not possible for the most of environments to extract the package content due to the bz support missing.</div>
<div>For now it is required to fill in 2 variables (url and version of the package) explicitly in updater/ajax/admin.php</div><div><br></div><div>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.</div>
<div>Another bad news is that I promised my wife not to write a single line of code during the vacations ;) </div><div>I'll be back on the August, 8 so it won't last too long.</div><div><br></div><div>[1] <a href="https://gitorious.org/vicdeo/updater">https://gitorious.org/vicdeo/updater</a></div>
<div><br></div><div>Victor Dubiniuk.</div>