mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Merge pull request #12368 from sputnick-dev/patch-2
profiler docs: add version detection
This commit is contained in:
@@ -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 ../..
|
||||
|
||||
|
||||
Reference in New Issue
Block a user