Merge pull request #12368 from sputnick-dev/patch-2

profiler docs: add version detection
This commit is contained in:
Simon L.
2025-05-05 10:30:10 +02:00
committed by GitHub

View File

@@ -13,9 +13,9 @@ using the latest development version of Nextcloud.
.. code-block:: bash
major_version=$(sudo -E -u www-data php occ version 2>&1 | awk -F'[. ]' '{print $2;exit}')
cd apps/
git clone --branch stableX https://github.com/nextcloud/profiler.git
# adapt X to your Nextcloud version: sudo -E -u www-data php occ version | grep -oP 'Nextcloud \K\d+'
git clone --branch stable$major_version https://github.com/nextcloud/profiler.git
cd profiler
cd ../..