Skip to content

Commit

Permalink
docs: borg-serve: simplify example of env vars in authorized_keys, see
Browse files Browse the repository at this point in the history
…#8318

so long as it can be assumed that the user has configured a POSIX
compliant login shell, using a simple command [1] looks cleaner, as
no ``export`` or ``;`` are used.

[1] Section "2.9.1 Simple Commands" in volume "Shell & Utilities" of POSIX.1-2024
  • Loading branch information
qyanu committed Aug 11, 2024
1 parent ea718b9 commit d80648d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage/serve.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ locations like ``/etc/environment`` or in the forced command itself (example bel

# Set a BORG_XXX environment variable on the "borg serve" side
$ cat ~/.ssh/authorized_keys
command="export BORG_XXX=value; borg serve [...]",restrict ssh-rsa [...]
command="BORG_XXX=value borg serve [...]",restrict ssh-rsa [...]

.. note::
The examples above use the ``restrict`` directive. This does automatically
Expand Down

0 comments on commit d80648d

Please sign in to comment.