From 8889e92a649bc5bbbc08ae13ef71a9675ab2c62d Mon Sep 17 00:00:00 2001 From: szaimen Date: Mon, 26 Sep 2022 12:22:05 +0200 Subject: [PATCH] fix incorrect removal of OO Signed-off-by: szaimen --- Containers/nextcloud/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index a4238fbc..ac3cabe4 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -382,7 +382,7 @@ if [ "$ONLYOFFICE_ENABLED" = 'yes' ]; then php /var/www/html/occ config:app:set onlyoffice DocumentServerUrl --value="https://$NC_DOMAIN/onlyoffice" php /var/www/html/occ config:system:set allow_local_remote_servers --type=bool --value=true else - if [ -d "/var/www/html/custom_apps/onlyoffice" ]; then + if [ -d "/var/www/html/custom_apps/onlyoffice" ] && [ -n "$ONLYOFFICE_SECRET" ] && [ "$(php /var/www/html/occ config:system:get onlyoffice jwt_secret)" = "$ONLYOFFICE_SECRET" ]; then php /var/www/html/occ app:remove onlyoffice fi fi