Hi ownCloud,<div><br></div><div>I see $subject has been downloaded over 20 times so far. </div><div><div>I consider the update experience to be successful  since I'm still alive. :)</div><div>But I really appreciate some feedback even negative one.</div>
<div><br></div>As a next step I'm going to get rid of the 'backup' dir in the OC root and move it into the 'data'  dir.</div><div>Pros are: </div><div>- 'data' dir is not involved into the update;</div>
<div>- 'data' dir is inaccessible from the web;</div><div>- extra dir in OC root makes it cumbersome.<br><br>Does anyone see any cons?<br><br>---</div><div>Victor<br><br><div class="gmail_quote">On Sun, Aug 12, 2012 at 2:05 PM, Victor Dubiniuk <span dir="ltr"><<a href="mailto:victor.dubiniuk@gmail.com" target="_blank">victor.dubiniuk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>The webinstall script uses link to the recent release in <b>zip </b>package so I change the updater to use the same URL. </div>
<div><br></div><div>The app has been published for beta testing:</div><div>
<a href="http://apps.owncloud.com/content/show.php/Updater?content=153278" target="_blank">http://apps.owncloud.com/content/show.php/Updater?content=153278</a><br><br>---</div><div>Victor<div><div class="h5"><br><br><div class="gmail_quote">
On Mon, Jul 23, 2012 at 12:18 PM, Frank Karlitschek <span dir="ltr"><<a href="mailto:frank@owncloud.org" target="_blank">frank@owncloud.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Victor,<br>
<br>
wow. That´s very cool.<br>
It would be great if more people would test this to see if it works under all circumstances.<br>
<br>
<br>
Very nice :-)<br>
<span><font color="#888888"><br>
<br>
Frank<br>
</font></span><div><div><br>
<br>
On 22.07.2012, at 15:28, Victor Dubiniuk <<a href="mailto:victor.dubiniuk@gmail.com" target="_blank">victor.dubiniuk@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I started ownCloud updater [1] development and it is quite usable now.<br>
><br>
> It works this way:<br>
> - creates backup directory inside the ownCloud root.<br>
> - extracts the package content into the backup/packageVersion<br>
> - makes the copy of the current instance (except data dir) to backup/currentVersion-randomstring<br>
> - adds to the include path all required paths relative to backup/currentVersion-randomstring<br>
> - moves all folders except the  data dir from the current instance to backup/tmp<br>
> - moves all folders from backup/packageVersion to the current version<br>
> - copy old config.php to the config directory.<br>
><br>
> 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.<br>
><br>
> What is in TODO list:<br>
> - cleanup after the upgrade is completed<br>
> - ability to revert already moved directories on error.<br>
><br>
> 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.<br>


> For now it is required to fill in 2 variables (url and version of the package) explicitly in updater/ajax/admin.php<br>
><br>
> 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.<br>
> Another bad news is that I promised my wife not to write a single line of code during the vacations ;)<br>
> I'll be back on the August, 8 so it won't last too long.<br>
><br>
> [1] <a href="https://gitorious.org/vicdeo/updater" target="_blank">https://gitorious.org/vicdeo/updater</a><br>
><br>
> Victor Dubiniuk.<br>
><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>