Upgrade apps after docker pull

Hello there.

I’m quite new to NextCloud and decided to run the docker version so I can have it upgraded by just pulling the latest image. This works marvellous already. Now each time NextCloud gets an upgrade, I see the Calendar and Tasks apps stop working - an easy fix is to logon as admin and upgrade the apps to the latest versions. Luckily this is done with the click of a button.

Question:
As I already enable these apps through curl/OCI, is there also a way to trigger the upgrade via the web interface?

Hiran

1 Like

I would like to upgrade all apps automatically via the command line too

Meanwhile I have a solution that works for me.

When I pull a new docker image, it comes without applications. So essentially I do not need to upgrade them but to install them from scratch. What I use for that is

docker exec --user 33 nextcloud /var/www/html/occ app:install calendar

This would be a solution:

DOCKERCONTAINER=add your container here from docker ps
ALLAPPS="$(docker exec --user www-data $DOCKERCONTAINER php occ app:list|grep Disabled -B999|grep -- -|cut -d" " -f4|cut -d: -f1|xargs)"
for a in $ALLAPPS; do docker exec --user www-data $DOCKERCONTAINER php occ app:update $a; done