From adcc8b78eb5e6cb9f58c5a20faffb5e59c92ff2c Mon Sep 17 00:00:00 2001 From: Duo123418 <148443179+Duo123418@users.noreply.github.com> Date: Wed, 16 Oct 2024 20:16:43 +1100 Subject: [PATCH 1/2] Update occ_command.rst Signed-off-by: Duo123418 <148443179+Duo123418@users.noreply.github.com> --- admin_manual/occ_command.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/admin_manual/occ_command.rst b/admin_manual/occ_command.rst index 590e07943b6..f7ef215a59a 100644 --- a/admin_manual/occ_command.rst +++ b/admin_manual/occ_command.rst @@ -268,6 +268,13 @@ Enable an app for specific groups of users:: sudo -u www-data php occ app:enable --groups admin --groups sales files_external files_external enabled for groups: admin, sales +Enable multiple apps simultaneously:: + + sudo -u www-data php occ app:enable app1 app2 app3 + app1 enabled + app2 enabled + app3 enabled + Disable an app:: sudo -u www-data php occ app:disable files_external From f9193dae1b192592e60a972b174dd99ddc2a0853 Mon Sep 17 00:00:00 2001 From: Duo123418 <148443179+Duo123418@users.noreply.github.com> Date: Wed, 16 Oct 2024 20:25:17 +1100 Subject: [PATCH 2/2] Update apps_management.rst Signed-off-by: Duo123418 <148443179+Duo123418@users.noreply.github.com> --- admin_manual/apps_management.rst | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/admin_manual/apps_management.rst b/admin_manual/apps_management.rst index eb454469f0f..b37e0071b5d 100644 --- a/admin_manual/apps_management.rst +++ b/admin_manual/apps_management.rst @@ -81,6 +81,38 @@ By default guest users, when using the guests app, are not notified, to enable n occ config:app:set --type boolean --value="true" updatenotification app_updated.notify_guests +Enabling apps via occ command +----------------------------- + +In addition to managing apps via the web interface, administrators can also enable or disable apps using the `occ` command. + +To enable an app, use the following command: + +:: + + occ app:enable + +For example, to enable the "files" app, run: + +:: + + occ app:enable files + +To enable the app for specific groups, use the `--groups` option: + +:: + + occ app:enable files --groups=admin + + +This command enables the "files" app only for the "admin" group. + +To disable an app, use: + +:: + + occ app:disable + Using private API -----------------