[Owncloud] Update and Upgrade procedure or 'how I upgraded to 4.5 (released version)'

Michael Göhler somebody.here at gmx.de
Thu Oct 11 13:23:55 UTC 2012


Hi Diderick,

when you extract a tar archive without -p option the extracted files
ownership is changed do your user-id and primary group-id.

When your config directory is a symlink, your tar command has to have
the -h switch, otherwise it is overwritten by the tar extract. (testet
this right away)

For me the tar archive should be packed without the leading owncloud
folder. Because someone may have installed owncloud in web-root like
me. As a workaround we can use the "--strip-components=1" switch.

So this is how I would do it:

first change user to www-data and go to your owncloud root directory

backup old installation
tar -cjvf /some/backup/dir/owncloud_backup.tar.bz2

install new version
tar --strip-components=1 -xjvf /some/download/dir/owncloud-4.5.0.tar.bz2
(in your case you may need -h switch here)

Maybe you also need to change the ownership of all files from root to
www-data first. (chown -R www-data:www-data /path/to/owncloud)

Regards,
Michael


Am Thu, 11 Oct 2012 14:22:01 +0200
schrieb Diederik de Haas <didi.debian at cknow.org>:

> My advice: remove the "Unpack the release tarball in the owncloud
> directory" from the update and upgrade procedure ASAP and replace it
> my extracting it in a temp directory and then *copy* the
> file/directories into your owncloud installation directory over your
> existing installation (ie remove step 4) if you don't want to change
> all ownership/permissions again.



More information about the Owncloud mailing list