From 87216718381bd011e4ea0d988a0cbb916a13c399 Mon Sep 17 00:00:00 2001 From: Andrea Longo Date: Fri, 21 Apr 2023 15:51:15 -0600 Subject: [PATCH] Only mc admin update might need sudo (#829) `sudo` note from https://github.com/minio/docs/pull/822 really should only apply to `mc admin update`. Add there and remove from the common include. Staged http://192.241.195.202:9000/staging/remove-excessive-sudo-note/linux/html/reference/minio-mc-admin/mc-admin-update.html --- source/includes/common-minio-mc.rst | 4 +--- source/reference/minio-mc-admin/mc-admin-update.rst | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/source/includes/common-minio-mc.rst b/source/includes/common-minio-mc.rst index 1efde284..42e44714 100644 --- a/source/includes/common-minio-mc.rst +++ b/source/includes/common-minio-mc.rst @@ -44,8 +44,6 @@ commands *may* work as documented, any such usage is at your own risk. - Parameters sharing a line are mutually dependent. - Parameters separated using the pipe ``|`` operator are mutually exclusive. -Copy the example to a text editor and modify as-needed before running the -command in the terminal/shell. -You may need to use ``sudo`` if your user does not have write permissions for the path where ``mc`` is installed. +Copy the example to a text editor and modify as-needed before running the command in the terminal/shell. .. end-minio-syntax diff --git a/source/reference/minio-mc-admin/mc-admin-update.rst b/source/reference/minio-mc-admin/mc-admin-update.rst index 656590aa..b50bc111 100644 --- a/source/reference/minio-mc-admin/mc-admin-update.rst +++ b/source/reference/minio-mc-admin/mc-admin-update.rst @@ -22,6 +22,7 @@ The command also supports using a private mirror server for environments where t After running the command, a prompt displays to confirm the update. Type ``y`` and ``[ENTER]`` to confirm and proceed with the update. +You may need to use ``sudo`` if your user does not have write permissions for the path where ``mc`` is installed. .. admonition:: Use ``mc admin`` on MinIO Deployments Only :class: note @@ -86,4 +87,4 @@ Syntax .. mc-cmd:: --yes, -y :optional: - Pass this flag to confirm the update and bypass the confirmation prompt. \ No newline at end of file + Pass this flag to confirm the update and bypass the confirmation prompt.