Skip to content

Commit 960d7c8

Browse files
committed
docs:Revert "docs: add notes about root requirements for commands"
This reverts commit 8cafdc0.
1 parent 8cafdc0 commit 960d7c8

21 files changed

+22
-67
lines changed

source/certificates.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ order them leaf to root.
3939

4040
Upload the resulting bundle file to Unit's certificate storage
4141
under a suitable name
42-
(in this case, **bundle**), running the following command as root:
42+
(in this case, **bundle**):
4343

4444
.. code-block:: console
4545
@@ -127,7 +127,7 @@ as **GET**-table JSON using **/certificates**:
127127

128128
Access array items,
129129
such as individual certificates in a chain,
130-
and their properties by indexing, running the following commands as root:
130+
and their properties by indexing:
131131

132132
.. code-block:: console
133133
@@ -196,7 +196,7 @@ the application is now accessible via SSL/TLS:
196196
197197
Finally, you can delete a certificate bundle
198198
that you don't need anymore
199-
from the storage, running the following command as root:
199+
from the storage:
200200

201201
.. code-block:: console
202202

source/configuration/index.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
.. include:: ../include/replace.rst
66

7-
.. note::
8-
The commands in this document starting with a hash (#) must be run as root or
9-
with superuser privileges.
10-
117
#############
128
Configuration
139
#############

source/controlapi.rst

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ may benefit from this
130130
Repeat these commands on the second machine
131131
to see where the target instance stores its state.
132132

133-
Stop both Unit instances, for example, running the following command as root:
133+
Stop both Unit instances, for example:
134134

135135
.. code-block:: console
136136
@@ -147,7 +147,7 @@ may benefit from this
147147
Copy the reference state directory to the target state directory
148148
by arbitrary means;
149149
make sure to include subdirectories and hidden files.
150-
Finally, restart both Unit instances running the following command as root:
150+
Finally, restart both Unit instances:
151151

152152
.. code-block:: console
153153
@@ -205,10 +205,6 @@ OpenAPI specification
205205
Quick start
206206
***********
207207

208-
209-
.. note::
210-
Run the `curl` commands in this section as root.
211-
212208
For a brief intro,
213209
we configure Unit to serve a static file.
214210
Suppose you saved this as **/www/data/index.html**:
@@ -268,7 +264,7 @@ To configure Unit,
268264
**PUT** this snippet to the **/config** section via the
269265
:ref:`control socket <source-startup>`.
270266
Working with JSON in the command line can be cumbersome;
271-
instead, save and upload it as **snippet.json**.
267+
instead, save and upload it as **snippet.json**:
272268

273269
.. code-block:: console
274270
@@ -366,7 +362,7 @@ connections are properly closed,
366362
processes end smoothly.
367363

368364
Any type of update can be done with different URIs,
369-
provided you supply the right JSON. Run the following commands as root:
365+
provided you supply the right JSON:
370366

371367
.. code-block:: console
372368
@@ -404,7 +400,7 @@ For instance, save your application object as **wiki.json**:
404400
"path": "/www/wiki/"
405401
}
406402
407-
Use it to set up an application called **wiki-prod**.
403+
Use it to set up an application called **wiki-prod**:
408404

409405
.. code-block:: console
410406

source/howto/apollo.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@ using Unit:
1010

1111
#. Install :ref:`Unit <installation-precomp-pkgs>` with the
1212
**unit-dev/unit-devel** package. Next, :ref:`install
13-
<installation-nodejs-package>` Unit's **unit-http** package. Run the following
14-
command as root:
13+
<installation-nodejs-package>` Unit's **unit-http** package:
1514

1615
.. code-block:: console
1716
1817
# npm install -g --unsafe-perm unit-http
1918
2019
#. Create your app directory, `install
2120
<https://expressjs.com/en/starter/installing.html>`_ |app|, and link
22-
**unit-http**. Run the commands starting with a hash (#) as root:
21+
**unit-http**:
2322

2423
.. code-block:: console
2524

source/howto/certbot.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ advisable to obtain certificates for your website from a certificate authority
99
<https://certbot.eff.org>`__ that issues free certificates signed by `Let's
1010
Encrypt <https://letsencrypt.org>`_, a non-profit CA.
1111

12-
.. note::
13-
The commands in this document starting with a hash (#) must be run as root or
14-
with superuser privileges.
15-
1612
***********************
1713
Generating Certificates
1814
***********************

source/howto/express.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ using Unit:
1010

1111
#. Install :ref:`Unit <installation-precomp-pkgs>` with the
1212
**unit-dev/unit-devel** package. Next, :ref:`install
13-
<installation-nodejs-package>` Unit's **unit-http** package. Run the following
14-
command as root:
13+
<installation-nodejs-package>` Unit's **unit-http** package:
1514

1615
.. code-block:: console
1716
@@ -33,8 +32,6 @@ using Unit:
3332
3433
$ npm install express --save
3534
36-
Run the following command as root:
37-
3835
.. code-block:: console
3936
4037
# npm link unit-http

source/howto/grafana.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ so we can :ref:`configure it <configuration-go>` to run on Unit.
134134
usually **$GOPATH/bin/**; it's used for the **executable** option in
135135
the Unit configuration.
136136

137-
#. Run the following commands (as root) so Unit can access |app|'s files:
137+
#. Run the following commands so Unit can access |app|'s files:
138138

139139
.. code-block:: console
140140

source/howto/koa.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ To run apps built with the `Koa <https://koajs.com>`_ web framework using Unit:
99

1010
#. Install :ref:`Unit <installation-precomp-pkgs>` with the
1111
**unit-dev/unit-devel** package. Next, :ref:`install
12-
<installation-nodejs-package>` Unit's **unit-http** package. Run the following
13-
command as root:
12+
<installation-nodejs-package>` Unit's **unit-http** package:
1413

1514
.. code-block:: console
1615
@@ -31,8 +30,6 @@ To run apps built with the `Koa <https://koajs.com>`_ web framework using Unit:
3130
3231
$ npm install koa
3332
34-
Run the following command as root:
35-
3633
.. code-block:: console
3734
3835
# npm link unit-http

source/howto/mailman.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To install and run the web UI for the `Mailman 3
2525

2626
These are needed to configure Unit.
2727

28-
#. Run the following command (as root) so Unit can access |app|'s static files:
28+
#. Run the following command so Unit can access |app|'s static files:
2929

3030
.. code-block:: console
3131
@@ -39,7 +39,7 @@ To install and run the web UI for the `Mailman 3
3939
run the :program:`ps aux | grep unitd` command to be sure.
4040

4141
Alternatively, add Unit's unprivileged user account to |app|'s group so Unit
42-
can access the static files. Run the following command as root:
42+
can access the static files:
4343

4444
.. code-block:: console
4545

source/howto/mediawiki.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ documentation platform using Unit:
138138
139139
$ chmod 600 LocalSettings.php
140140
141-
Run the following commands (as root) to set the correct ownership:
142-
143141
.. code-block:: console
144142
145143
# chown :nxt_ph:`unit:unit <Values from Step 3>` LocalSettings.php
@@ -149,7 +147,7 @@ documentation platform using Unit:
149147
# mv LocalSettings.php :nxt_ph:`/path/to/app/ <Path to the application directory; use a real path in your configuration>`
150148
151149
#. After installation, add a match condition to the first step to disable
152-
access to the **mw-config/** directory. Run the following command (as root):
150+
access to the **mw-config/** directory:
153151

154152
.. code-block:: console
155153

0 commit comments

Comments
 (0)