summaryrefslogtreecommitdiff
path: root/docs/CREDENTIALS.md
diff options
context:
space:
mode:
authorUriel Corfa <korfuri@gmail.com>2022-08-28 09:56:46 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-08-28 17:35:58 +0900
commitc0a18932dc487e863c9141f8b6a6a829f2f391c7 (patch)
treecae1de3b6364a2df4ea6ec9217c6755a6001689c /docs/CREDENTIALS.md
parentc4c9714464a0e8138f247405c3a52bab00f60781 (diff)
downloadsystemd-c0a18932dc487e863c9141f8b6a6a829f2f391c7.tar.gz
docs: fix incorrect env var name for credentials directory
CREDENTIAL_PATH appears nowhere in the systemd source code. $CREDENTIALS_DIRECTORY is what is used instead.
Diffstat (limited to 'docs/CREDENTIALS.md')
-rw-r--r--docs/CREDENTIALS.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/CREDENTIALS.md b/docs/CREDENTIALS.md
index f0d9865829..52741082f2 100644
--- a/docs/CREDENTIALS.md
+++ b/docs/CREDENTIALS.md
@@ -128,7 +128,7 @@ Associated service shell script `/usr/bin/myservice.sh`:
```sh
#!/bin/sh
-sha256sum $CREDENTIAL_PATH/foobar
+sha256sum $CREDENTIALS_DIRECTORY/foobar
sha256sum $FOOBARPATH
```
@@ -145,7 +145,7 @@ In an ideal world, well-behaved service code would directly support credentials
passed this way, i.e. look for `$CREDENTIALS_DIRECTORY` and load the credential
data it needs from there. For daemons that do not support this but allow
passing credentials via a path supplied over the command line use
-`${CREDENTIAL_PATH}` in the `ExecStart=` command line to reference the
+`${CREDENTIALS_DIRECTORY}` in the `ExecStart=` command line to reference the
credentials directory. For daemons that allow passing credentials via a path
supplied as environment variable, use the `%d` specifier in the `Environment=`
setting to build valid paths to specific credentials.