On Sat, Apr 18, 2020 at 08:06:10AM +0200, Unicorn wrote:
> Hello,
> 
> I have a running installation of Nextcloud, installed via the OpenBSD
> package and set up according to the various pkg-readmes. The section
> about updating is kept very short, so I wanted to ask here before doing
> something unwise out of my lack of experience:
> 
> When trying to use the NC updater (after working around the chroot), it
> complains that there is an additional file in the directory, namely
> ".htaccess.dist". The installation also fails the integrity check
> (unrelated to upgrade), I assume because of modifications that were
> made by the maintainers. I am not aware of what these modifications are
> and whether they are needed for NC to run properly on OpenBSD, so I was
> wondering how the update process would work using "pkg-add -u" to
> simply update the package. Would that replace the entire directory, or
> does it just fetch the newest version of Nextcloud, after which I would
> just need to run `occ upgrade`? Is there a better, recommended way to
> update in this case?
> 
> I'd be very thankful for some guidance and advice before I accidentally
> break something or end up with a bad hack. :)

I keep a nightly backup of the database (postgres in my case), upgrade
packages and trigger nextcloud's upgrade process via HTTPS on the nextcloud
login page. This process has not failed for me so far. Except when postgres
had a version bump as well with some incompatible DB format changes, and I
stupidly upgraded postgres without checking whether my DB backup was current.
Turned out it was a day or so behind. But I could restore this DB backup to
a newly created postgres database and nextcloud kept working.

Reply via email to