Merge pull request #5181 from nextcloud/enh/noid/remove-richdocumentscode

nextcloud-entrypoint: remove richdocumentscode if installed
This commit is contained in:
Simon L. 2024-09-04 11:47:02 +02:00 committed by GitHub
commit fb815dd5b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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