From 4fa2683b833210bcc8240d5bdc8ba3bb4a0dfeea Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 23 Aug 2023 16:39:20 +0200 Subject: [PATCH] Fix OO Signed-off-by: Simon L --- Containers/nextcloud/run-exec-commands.sh | 7 ++++++- php/containers.json | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Containers/nextcloud/run-exec-commands.sh b/Containers/nextcloud/run-exec-commands.sh index 5df4962c..a2a6c84a 100644 --- a/Containers/nextcloud/run-exec-commands.sh +++ b/Containers/nextcloud/run-exec-commands.sh @@ -15,9 +15,14 @@ if [ -n "$NEXTCLOUD_EXEC_COMMANDS" ]; then else # Collabora must work also if using manual-install if [ "$COLLABORA_ENABLED" = yes ]; then - echo "Activating collabora config..." + echo "Activating Collabora config..." php /var/www/html/occ richdocuments:activate-config fi + # OnlyOffice must work also if using manual-install + if [ "$ONLYOFFICE_ENABLED" = yes ]; then + echo "Activating OnlyOffice config..." + php /var/www/html/occ onlyoffice:documentserver --check + fi fi sleep inf diff --git a/php/containers.json b/php/containers.json index d3047dfd..c3689f6f 100644 --- a/php/containers.json +++ b/php/containers.json @@ -305,7 +305,7 @@ ], "restart": "unless-stopped", "nextcloud_exec_commands": [ - "echo 'Activating collabora config...'", + "echo 'Activating Collabora config...'", "php /var/www/html/occ richdocuments:activate-config" ], "profiles": [ @@ -563,6 +563,10 @@ "ONLYOFFICE_SECRET" ], "restart": "unless-stopped", + "nextcloud_exec_commands": [ + "echo 'Activating OnlyOffice config...'", + "php /var/www/html/occ onlyoffice:documentserver --check" + ], "profiles": [ "onlyoffice" ],