From eb50d5f7204573b9e20a976545356396b0a013e3 Mon Sep 17 00:00:00 2001 From: deepc2020 <56347351+deepc2020@users.noreply.github.com> Date: Wed, 7 Jun 2023 16:55:39 +0200 Subject: [PATCH] Added CLI Update for Nextcloud Added command for a cli based Nextcloud update to documentation. Both ways, interactive and non-interactive for scripts and cron, are descriped. --- docs/third_party/nextcloud/third_party-nextcloud.de.md | 4 ++++ docs/third_party/nextcloud/third_party-nextcloud.en.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/third_party/nextcloud/third_party-nextcloud.de.md b/docs/third_party/nextcloud/third_party-nextcloud.de.md index e3dab19dd..ba2b04906 100644 --- a/docs/third_party/nextcloud/third_party-nextcloud.de.md +++ b/docs/third_party/nextcloud/third_party-nextcloud.de.md @@ -195,6 +195,10 @@ Führen Sie z.B. folgenden Befehl aus, um die fehlenden Indizes hinzuzufügen: `docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "php /web/nextcloud/occ db:add-missing-indices"` +Das Update kann bei Bedarf auch per CLI durchgeführt werden. +Dies ist mit folgedem Befehl im interaktiven Modus möglich: `docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "php /web/nextcloud/updater/updater.phar"` +Um das Update ohne Rückfragen auszuführen, z.B. durch einen CRON Job, kann folgender Befehl verwendet werden: `docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "php /web/nextcloud/updater/updater.phar --no-interaction"` + --- ## Fehlersuche und Fehlerbehebung diff --git a/docs/third_party/nextcloud/third_party-nextcloud.en.md b/docs/third_party/nextcloud/third_party-nextcloud.en.md index 7f49b6f26..c6ff1a554 100644 --- a/docs/third_party/nextcloud/third_party-nextcloud.en.md +++ b/docs/third_party/nextcloud/third_party-nextcloud.en.md @@ -192,6 +192,10 @@ It shows which commands have to be executed, these have to be placed in the php- As an an example run the following command to add the missing indices. `docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "php /web/nextcloud/occ db:add-missing-indices"` +The update can also been done by CLI with the following command: `docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "php /web/nextcloud/updater/updater.phar"` + +This can also been done in an non interactive way (e.g. CRON) with this command: `docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "php /web/nextcloud/updater/updater.phar --no-interaction"` + --- ## Debugging & Troubleshooting