forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

readme: Suggest /usr/local/lib/exec/tangled-keyfetch for keyfetch

It's not appropriate to put binaries in /; binaries installed external
to the package manager should be installed in /usr/local/bin or
/usr/local/libexec on most systems. Since it's not meant to be executed
by users directly, it's probably more appropriate to be in libexec;
also, since "keyfetch" is a rather generic name, it's probably better to
rename it as "tangled-keyfetch".

Signed-off-by: Runxi Yu <me@runxiyu.org>

Changed files
+6 -6
+6 -6
readme.md
···
go build -o repoguard ./cmd/repoguard
```
-
Next, move the `keyfetch` binary to a location owned by `root` -- `/keyfetch` is
-
a good choice:
+
Next, move the `keyfetch` binary to a location owned by `root` --
+
`/usr/local/libexec/tangled-keyfetch` is a good choice:
```
-
sudo mv keyfetch /keyfetch
-
sudo chown root:root /keyfetch
-
sudo chmod 755 /keyfetch
+
sudo mv keyfetch /usr/local/libexec/tangled-keyfetch
+
sudo chown root:root /usr/local/libexec/tangled-keyfetch
+
sudo chmod 755 /usr/local/libexec/tangled-keyfetch
```
This is necessary because SSH `AuthorizedKeysCommand` requires [really specific
···
```
sudo tee /etc/ssh/sshd_config.d/authorized_keys_command.conf <<EOF
Match User git
-
AuthorizedKeysCommand /keyfetch
+
AuthorizedKeysCommand /usr/local/libexec/tangled-keyfetch
AuthorizedKeysCommandUser nobody
EOF
```