From 91faf2bd34a88743298d5897f0af2e645f435c5b Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Fri, 30 Aug 2024 16:56:46 +0200 Subject: [PATCH] nextcloud-entrypoint: remove richdocumentscode if installed Signed-off-by: Simon L. --- Containers/nextcloud/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index cc6289c8d20..f392dac515b 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -597,6 +597,10 @@ if [ "$COLLABORA_ENABLED" = 'yes' ]; then COLLABORA_HOST="$NC_DOMAIN" fi set +x + # Remove richdcoumentscode if it should be incorrectly installed + if [ -d "/var/www/html/custom_apps/richdocumentscode" ]; then + php /var/www/html/occ app:remove richdocumentscode + fi if ! [ -d "/var/www/html/custom_apps/richdocuments" ]; then php /var/www/html/occ app:install richdocuments elif [ "$(php /var/www/html/occ config:app:get richdocuments enabled)" != "yes" ]; then