From cf2ae05b0cb801de0a6f2d117c80b16d0e055c91 Mon Sep 17 00:00:00 2001
From: Alexis IMBERT <alexis.imbert@insa-rouen.fr>
Date: Tue, 27 Feb 2024 21:19:46 +0100
Subject: [PATCH] updating php version

---
 pages/04.applications/10.docs/nextcloud/app_nextcloud.md | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pages/04.applications/10.docs/nextcloud/app_nextcloud.md b/pages/04.applications/10.docs/nextcloud/app_nextcloud.md
index 97fc01ad..3d255d18 100644
--- a/pages/04.applications/10.docs/nextcloud/app_nextcloud.md
+++ b/pages/04.applications/10.docs/nextcloud/app_nextcloud.md
@@ -132,8 +132,7 @@ Back up with `ctrl+x` then `y` or `o` (depending on your server locale).
 Run a scan of the new directory by Nextcloud:
 
 ```bash
-cd /var/www/nextcloud
-sudo -u nextcloud php8.1 --define apc.enable_cli=1 files:scan --all
+sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ files:scan --all
 ```
 
 Update the YunoHost setting, so automatic upgrades and backups know where the datadir is located:
@@ -246,7 +245,7 @@ Save the file (**CTRL** + **o**) and exit nano (**CTRL** + **c**).
 Then run a scan by executing next command as root:
 
 ```bash
-sudo -u nextcloud php8.1 --define apc.enable_cli=1 files:scan --all
+sudo -u nextcloud php8.2 --define apc.enable_cli=1 /var/www/nextcloud/occ files:scan --all
 ```
 
 Now the problem is fixed.