mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
doc: remove excess whitespace for (id -u -n)
This commit is contained in:
@@ -819,7 +819,7 @@ To avoid the nitty-gritty details of `launchd` plist files, you can use
|
||||
2. Use Serviceman to create a _launchd_ plist file
|
||||
|
||||
```sh
|
||||
my_username="$( id -u -n )"
|
||||
my_username="$(id -u -n)"
|
||||
|
||||
serviceman add --user --name caddy -- \
|
||||
caddy run --config ./Caddyfile --envfile ~/.config/caddy/env
|
||||
@@ -901,7 +901,7 @@ See the notes below to run as a **User Service** or use the JSON Config.
|
||||
```
|
||||
4. Use Serviceman to create a _systemd_ config file.
|
||||
```sh
|
||||
my_username="$( id -u -n )"
|
||||
my_username="$(id -u -n)"
|
||||
sudo env PATH="$PATH" \
|
||||
serviceman add --system --username "${my_username}" --name caddy -- \
|
||||
caddy run --config ./Caddyfile --envfile ~/.config/caddy/env
|
||||
@@ -1363,7 +1363,7 @@ See also: <https://caddyserver.com/docs/running>
|
||||
2. Generate the `service` file: \
|
||||
- JSON Config
|
||||
```sh
|
||||
my_app_user="$( id -u -n )"
|
||||
my_app_user="$(id -u -n)"
|
||||
sudo env PATH="${PATH}" \
|
||||
serviceman add --system --cap-net-bind \
|
||||
--username "${my_app_user}" --name caddy -- \
|
||||
@@ -1371,7 +1371,7 @@ See also: <https://caddyserver.com/docs/running>
|
||||
```
|
||||
- Caddyfile
|
||||
```sh
|
||||
my_app_user="$( id -u -n )"
|
||||
my_app_user="$(id -u -n)"
|
||||
sudo env PATH="${PATH}" \
|
||||
serviceman add --system --cap-net-bind \
|
||||
--username "${my_app_user}" --name caddy -- \
|
||||
|
||||
@@ -227,7 +227,7 @@ Node app as a Non-System (Unprivileged) Service on Mac, Windows, and Linux:
|
||||
or _User Unit_ (Linux):
|
||||
|
||||
```sh
|
||||
my_username="$( id -u -n )"
|
||||
my_username="$(id -u -n)"
|
||||
|
||||
serviceman add --user --name my-node-project -- \
|
||||
caddy run --config ./Caddyfile --envfile ~/.config/caddy/env
|
||||
@@ -275,7 +275,7 @@ Node app as a Non-System (Unprivileged) Service on Mac, Windows, and Linux:
|
||||
```sh
|
||||
pushd ./my-node-project/
|
||||
|
||||
my_username="$( id -u -n )"
|
||||
my_username="$(id -u -n)"
|
||||
sudo env PATH="$PATH" \
|
||||
serviceman add --system --path "$PATH" --cap-net-bind \
|
||||
--name my-node-project --username "${my_username}" -- \
|
||||
|
||||
Reference in New Issue
Block a user