Upgrade procedure
The current upgrade procedure of cloud.solawi.allmende.io
is not that trivial, as it is intertwined with datengarten.allmende.io
and the onlyoffice app.
It might also be reasonable to switch to building the dockerfile ourselves instead of using the image, due to better support for caching: https://github.com/nextcloud/docker/issues/336#issuecomment-392831101
I wrote a little script for doing the upgrade, but maybe this would be more reasonable to do with ansible?
#!/bin/bash
nextcloud_domains[0]="datengarten.allmende.io"
nextcloud_domains[1]="cloud.solawi.allmende.io"
# backup
backupninja -n -d
# upgrade
for cloud in ${nextcloud_domains[@]}; do
cd "/data/domains/${cloud}"
libre stop
docker-compose rm -f && docker-compose pull
libre start
done
Additionally we should somewhere define to only upgrade these during non-normal-working times.