From d80648dc37230c5b103ebc8baf4f3f6f540ac88f Mon Sep 17 00:00:00 2001 From: Max-Julian Pogner Date: Sun, 11 Aug 2024 18:55:28 +0200 Subject: [PATCH] docs: borg-serve: simplify example of env vars in authorized_keys, see #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 --- docs/usage/serve.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage/serve.rst b/docs/usage/serve.rst index 4438724ac2..4c82ade78f 100644 --- a/docs/usage/serve.rst +++ b/docs/usage/serve.rst @@ -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