From a590461b39fb451cdaeb15419f5e7846534415ff Mon Sep 17 00:00:00 2001
From: Maarten de Waard <maarten@greenhost.nl>
Date: Fri, 17 Dec 2021 12:07:05 +0100
Subject: [PATCH] add somethign about the NC `database.xml` to the upgrading
 docs

---
 docs/upgrading.rst | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/docs/upgrading.rst b/docs/upgrading.rst
index 091b9fafe..e699f467a 100644
--- a/docs/upgrading.rst
+++ b/docs/upgrading.rst
@@ -99,6 +99,17 @@ You can choose from these options:
       # Note: the files are tranferred to a subfolder in the new user's
       # directory
 
+Depending on when you first installed Nextcloud, the ``setup-apps`` job may fail
+during the upgrade. If that happens, execute these commands in order to update
+the failing apps to their newest version, and to remove old files that can cause
+problems.
+
+.. code:: bash
+
+   kubectl exec -n stackspin-apps deployment/nc-nextcloud -- rm -r /var/www/html/custom_apps/onlyoffice
+   kubectl exec -n stackspin-apps deployment/nc-nextcloud -- rm -r /var/www/html/custom_apps/sociallogin
+   flux suspend hr -n stackspin-apps nextcloud && flux resume hr -n stackspin-apps nextcloud
+
 Rocket.Chat
 ~~~~~~~~~~~
 
-- 
GitLab