Hacker News new | past | comments | ask | show | jobs | submit login

Also started with OwnCloud and moved to NextCloud. If I'm not mistaken I've been upgrading the same NextCloud install since version 11 or so. Now on 19.

Every time it's basically:

  mv nextcloud nextcloud.r19
  mkdir nextcloud && pushd nextcloud && tar -zxf ../nextcloud-r20.tgz
  cp nextcloud.r19/config/config.php nextcloud/config/config.php
  # set permissions
  sudo -u php php occ upgrade
Then just log into the web UI and check everything's still sane and follow any upgrade suggestions it has (frequently to run commands to add columns/indexes to the database).

The instructions they provide for a manual upgrade have never failed for me: https://docs.nextcloud.com/server/latest/admin_manual/mainte...

As far as software that needs upgrades, NextCloud has definitely been one of the least annoying things I have to deal with.




uhh.. that sounds awful. owncloud just has me click a button.


NextCloud also has a web upgrader accessible from the admin panel. It's almost certainly based on the same code.

I don't know why they go about it in such a manual way. If you don't like the web installer, there's a command line version that does everything for you (upgrader.phar).


> I don't know why they go about it in such a manual way.

Because I don't generally give the code permission to modify itself. Principle of least privilege and all that.

Outside of this one specific situation (upgrades) it's not needed, the rest of the time it's just one more layer of security in the way of various forms of exploit. (Maybe it's just trauma from dealing with the 8,000 forms of wordpress exploits back in the day and dealing with finding half of wordpress having random code added to it to persist exploits/randomly redirect people to scam sites/etc)

In the end it adds like 5 minutes of inconvenience to my upgrade process.


Yep, wordpress too has taught me this lesson. I now understand why we have so much tooling to lock down processes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: